rsync backup and quota

stars

Verified User
Joined
Nov 3, 2010
Messages
61
Due to high load during backup I excluded domain dir form DA backup and configured rsync to backup those dirs in seperate process. Backup is done on /home/admin account with rsync -av option (archive to preserve ownership). But there is one problem - backup files with ownership increase users quota even if they are stored on /home/admin folder.

How can I preserve ownership and dont increase users quota by doig backup of their files? Can I exclude backup folder from quota?
 
How can I preserve ownership and dont increase users quota by doig backup of their files? Can I exclude backup folder from quota?

Either move it to a partition mounted without quota support, or chown the rsync copies... (of course the second is a bad idea)...
 
That was also my conclusion. If You DONT want to preserve ower and group of the destination files You should use
Code:
rsync -rlptDv
instead of rsync -av

For me it's little bit problematic to create new partition without quota. And because I rsync only domains folder so in case of mass recovery I can copy domains backup to home directory and then run
Code:
cd /home
for i in `ls`; do { chown -R $i:$i $i/domains; }; done;
 
-a, --archive archive mode; equals -rlptgoD

Yes, that is correct, so if you don't want group (g option) and owner (o option) to be preserved You should use -rlptD instead of -a
 
Back
Top