[Wylug-help] Linux equvilance to 'off line folders'?
James Holden
wylug at jamesholden.net
Mon Mar 22 17:10:07 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
lists at mungewell.org wrote:
| Hi all,
| having managed to locate a cheap laptop for my wife I am having to
| rearrange how our system works. I want to maintain the 'server' as the
| master repositary for our files, so we can basically use any machine we
| have. However as I also want to be able to use/update files whilst not
| network connected I need to implement some form of 'offline folders'.
|
| I imagine that files might only be changed by a single person on a
| single machine between synchronisations, so I wouldn't need the ability
| to merge changes from different sources.
|
| I remember someone mentioning, a while ago, that they were using CVS to
| access their home directory.
|
| Is this a good approach? and does anyone have any alternative
| suggestions?
|
| Simon.
My laptop rsync's /home once an hour. It works very well, and uses ssh
public keys to authenticate.
The command looks like this:
rsync -avpogtL --numeric-ids --rsh="ssh -l root" \
- --rsync-path=/usr/freeware/bin/rsync \
- --exclude-from=/root/thinkpad_excludes.txt /home/ \
indigo2:/data/backups/thinkpad/
Replace the --rsync-path argument with the path to rsync on the server
(/usr/freeware/bin/rsync in this case). /root/thinkpad_excludes.txt
contains entries like:
*/.tmp
*/.temp
*/temp
*/noarchive
*/scratch
*/.??*/*/*/Cache
*/.gimp*/gimpswap*
*/.Trash/*
This avoids rsyncing pointless stuff, like huge undo files from Gimp.
Generate the public key on the laptop with 'ssh-keygen -t rsa' and
append the contents of the resulting .pub file to
~root/.ssh/authorized_keys. Make sure public key authentication is
enabled in sshd.conf.
James
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFAXx3vmHdHQoNYhjoRAn6CAKDCtyt1BcUmY+pLhMS3HZi75DlEVgCdG8nO
Ms63uwIAkZyN0NQ3+r+jkG8=
=+SIL
-----END PGP SIGNATURE-----
More information about the Wylug-help
mailing list