A few rsync options are confusing me -AX. -AX preserves ACLs, permissions, and extended attributes.
-avz works when pulling or pushing from the client machine:
Code:
rsync -avz --delete user@server:/home/ /home/ --dry-run
rsync -avz --delete /home/ user@server:/home/ -dry-run
But if I try to use the -AX options to preserve permissions, I run in to permission denied issues when I try to push to the server. I know I shouldn't push and better to pull but I haven't set up the ssh keys in the other direction yet.
Code:
rsync -aAXvz --delete /home/ user@server:/home/ --dry-run
Is -AX necessary as I don't see it being used in many examples?
In my examples here I use /home/ and would always pull when backing up, probably a bad example for what I'm actually doing. I am working on editing some scripts and document files saved in a small working directory and I am trying to push changes back to the server to keep the most current version on the server. It's sometimes easier to push these small changes but I should do it better. I digress
Bookmarks