[opensuse] Re: backup based on file size
jdd a écrit :
--max-size=SIZE don't transfer any file larger than SIZE --min-size=SIZE don't transfer any file smaller than SIZE
yes, this is probably the solution.
seems to work: rsync -av --max-size=400m --delete --exclude=/media --exclude=/proc --exclude=/dev --exclude=/sys --exclude=/tmp / /media/opensuse11/ with the drive mounted on /media/opensuse11 but there is a lot of temporary directories to exclude and I forgot some (like /var/tmp). I also wonder what will happen to the /windows directory: I backup on a ext3 hard drive. However I don't mean to restore the system files, I do a hole backup just in case. Caches should also be excluded, as backup files, but is a little too tricky jdd -- http://www.dodin.net http://valerie.dodin.org http://www.youtube.com/watch?v=t-eic8MSSfM http://www.facebook.com/profile.php?id=1412160445 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2009-03-09 at 22:43 +0100, jdd wrote:
seems to work:
rsync -av --max-size=400m --delete --exclude=/media --exclude=/proc --exclude=/dev --exclude=/sys --exclude=/tmp / /media/opensuse11/
with the drive mounted on /media/opensuse11
but there is a lot of temporary directories to exclude and I forgot some (like /var/tmp).
Well, you will have to adjust the command line over several iterations :-)
I also wonder what will happen to the /windows directory: I backup on a ext3 hard drive. However I don't mean to restore the system files, I do a hole backup just in case.
If you want to do a backup of windows files, of a partition or directory used from windows, you also have to make a separate backup of msdos file attributes. Use "mattrib" from the mtools package: the replay option can be used to generate a script that, when executed, recreates the original msdos attributes on the files.
Caches should also be excluded, as backup files, but is a little too tricky
I think you can also give rsync a list on a file, instead of on the command line. - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkm1wAgACgkQtTMYHG2NR9ViVQCdHk28NeJYeuMkx1GClFImomLS tWoAn1KkPlDQAt5Ru1SNzBCDtQ4yxISD =NU2d -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carlos E. R. wrote:
On Monday, 2009-03-09 at 22:43 +0100, jdd wrote:
seems to work:
rsync -av --max-size=400m --delete --exclude=/media --exclude=/proc --exclude=/dev --exclude=/sys --exclude=/tmp / /media/opensuse11/
with the drive mounted on /media/opensuse11
but there is a lot of temporary directories to exclude and I forgot some (like /var/tmp).
Well, you will have to adjust the command line over several iterations :-)
For one thing, doesn't rsync support a file with a list of items to exclude/include? -- Per Jessen, Zürich (3.1°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-03-10 at 08:33 +0100, Per Jessen wrote:
but there is a lot of temporary directories to exclude and I forgot some (like /var/tmp).
Well, you will have to adjust the command line over several iterations :-)
For one thing, doesn't rsync support a file with a list of items to exclude/include?
I believe it does, but that doesn't save you of running several iterations of adjust script, run backup, check backup, till you get what you really want ;-) Well, being rsync, each time you do not have to delete the backp to restart: just restart, rsync --del etc will remove the files that shouldn't be there (I think). - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkm2K+0ACgkQtTMYHG2NR9XBMQCfQYaEM578Q/zM5r3sBLtkW6aN 7E0AoJTtVqfAlMOoZ0KQQAIKSegoHfq7 =uzmr -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carlos E. R.
-
jdd
-
Per Jessen