What rsync command should I use for maximum preservation?
by maybeJosiah from LinuxQuestions.org on (#6HQNG)
Quote:
That is what I think is most preservative. I would be on a bootable USB, navigate to where like my root directory would be, open terminal there, and run a command like this. Those things in parentheses, (), are to be replaced by what words inside them mean. That should both backup and restore but no need for --exclude upon restore. I just would like to be sure I do not have a mishap and not backup everything I can or make some mistake and lose something. I know there is -N but like my system does not support that. I am on a desktop 22.04.3 LTS Ubuntu with Ubuntu Pro Lenovo Thinkpad T460. I understand I do not need -v but I prefer to know everything. Also, I know there is -P but I do not want --partial. Feel free to give your preferred command whether it conflicts with like my preferences or not. I would be using a USB to back up. I would be using an ext4 USB. X E.
sudo rsync -vrlDAXpHtUExog --progress --delete --open-noatime --exclude='(USB at)' (like '/' but not) (copy to directory) |