• 9 Posts
  • 57 Comments
Joined 2 years ago
cake
Cake day: June 10th, 2023

help-circle









  • One thing to note that I just learned!

    If you rsync over a network, you need to be careful. While you might sude rsync -a to maintain file ownership on the sending side, the receiving side will not be a superuser and therefore will be unable to make files owned by other users.

    If you add "–rsync-path “sudo rsync” in the ssh version of the command, it’ll tell the receiving side to use sudo which will allow it to maintain file ownership when storing the files.



  • Rsync will compare the contents of the source directory with the target directory. If it finds a match, it won’t copy the files, if there’s no match, it copies.

    If your goal is to have 1:1 copies, you can use the --delete flag to remove extraneous files in the target directory that aren’t in the source directory.

    If you use the -a flag, it’ll maintain all of your permissions.

    You can literally rsync a linux installation from one machine to another. While the source machine is running. Pretty nuts.


  • I got an external ORICO USB hard drive dock and two 3.5" hard drive cases (also by Orico). Every month or so, I plug them in and rsync files over. I’m lucky that one specific folder is about the size of one drive, so I just manually split them. There’s probably a better way to do that if you don’t have an obvious split.

    Then the 3.5" drives in their colorful cases go into a fireproof safe in the basement. I also added another pair for semiannual backups that go to my inlaws.