what is the rsync flag to ignore permissions
I am using Rsync to backup files to a another machine, the users on my fileserver do not exist on the backup server so Rsync throws errors about the permissions. It copies the files fine but I want to get rid of the errors and have Rsync ignore the permissions when backing up.
/backup is a mounted ftp directory Below is the current command and output: Code:
root@Fileserver:~# rsync -av --delete /shared/fileshare/ /backup/backup Code:
root@Fileserver:~# rsync -av --no-p --delete /shared/fileshare/ /backup/backup |
You are using "-a" which is just shorthand for all of "-rlptgoD". By reading the man page you should be able to work out which of "-rlptgoD" to drop.
Cheers, Evo2. PS. it looks like ownership is the problem not permissions: Ie. what happens if you use -rlptgD instead of -a? |
Quote:
for anyone who is interested, here is what im now using and details of the flags taken from the man page: Code:
root@Fileserver:/# rsync -rltzuv --delete /shared/fileshare/ /backup/backup -l, --links copy symlinks as symlinks -t, --times preserve modification times -z, --compress compress file data during the transfer -u, --update skip files that are newer on the receiver |
Quote:
|
Still helpful
|
All times are GMT -5. The time now is 09:01 AM. |