[Leaplist] thrilling rsync adventures
Kevin Korb
kmk at sanitarium.net
Sun Feb 7 16:28:48 EST 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
A few things here (in order of your command line)...
- -z - don't use -z unless you are running over the internet. On a LAN it
will just slow you down.
- -e - -e what? I assume you meant -e ssh which is actually the default.
- --execlude - instead of using --exclude I highly recommend using
- --exclude-from=textfile with textfile in the format of:
+ something to include overriding a future exclude
- - something to exclude
You probably also want --delete and --delete-excluded for your backups.
Note that excludes are patterns. They do not have to be absolute paths.
If your source path is not / then the excludes that are absolute paths
are treated as relative to the source path.
Additional things you may want to exclude off the top of my head:
.gvfs (if you have it it always causes an error which aborts --delete)
/tmp
/var/tmp
*.sock
/var/locks
/var/run
Finally, the real power of rsync backups is in --link-dest which you
aren't using. The idea is that you point --link-dest to the path of
your last backup and the target to a new empty directory. At the end
you will have two complete backups with only the files that are
different taking up additional disk space.
BTW, the very next GOLUG meeting will be me presenting about making a
DIY backup system using rsync. That will be on 3/3.
On 02/07/10 16:22, Tom Foster wrote:
> Howdy guys,
>
> rsync has been beating the stuffing out of me and laughing.
>
> nothing that I thought I was excluding was being excluded, which resulted in an endless loop that would have just filled up the disk had I not noticed.
>
> I just wasted a good bit of time looking online and at the man page for syntax clues without success.
>
> my command looks like this:
>
> rsync -azvPe --exclude=blah --exclude=blah / path/to/bu/
>
> sort of. I want to exclude
>
> all isos anywhere
> /media/
> ~/.VirtualBox/
> /home/me/back2cd/
> /dev/
> /sys/
> /proc/
>
> plus anthing else you'd recommend.
>
> thanks.
>
- --
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
Kevin Korb Phone: (407) 252-6853
Systems Administrator Internet:
FutureQuest, Inc. Kevin at FutureQuest.net (work)
Orlando, Florida kmk at sanitarium.net (personal)
Web page: http://www.sanitarium.net/
PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAktvMJAACgkQVKC1jlbQAQebfwCfRM+heRBdfU1V0qyCSf8I8IGs
MxYAoJFEehb4pUatG48wF4fvbqunDx/H
=Dfc+
-----END PGP SIGNATURE-----
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Leaplist
mailing list