![]() The hyphen hyphen delete flag will then delete that file from the 2022 folder that is over at Photo_folders_Lightroom_backups. Let's say I had deleted a file from 2022 since last I had used rsync. The space hyphen hyphen delete is pretty useful. The -h makes it show numbers in human readable terms. The -a flag that I use stands for archive which encompasses a ton of separate flags: ![]() In this manner it acts a lot like the cp command. If this is the first time I've done this, and the 2022 folder doesn't yet exist in Photo_folders_Lightroom_backup, then the entire folder and every single file will be put into Photo_folders_Lightroom_backup. The files which haven't changed since last I did this aren't touched. The rsync command analyzes my 2022 folder and only copies over the files that have had changes. The second folder that I (or you) drag is the destination folder. Then from the Finder window of Hard Drive 02, I drag the folder Photo_folders_Lightroom_backup that contains 2022, 2021, etc, over to the Terminal window. The folder 2022 contains all the photo folders of images shot this year, with subfolders for every month and camera. The command I use most often is rsync -avPh typing it into my command line, then I drag a large encompassing folder such as a folder named 2022 from the Finder window showing Hard Drive 01 over to the command line. One of the things about the Mac Terminal is how it will type out paths for me when I use it in combination with Finder windows. ![]() I use it for backing up and synchronizing between my external hard drives. I'm fine with Windows, Linux, and even OpenBSD, but MacOS is just too difficult for me, unironically.Īs /u/Zen1 suggested, it sounds as if the rsync command is what you're looking for. I have little experience with Macs (I'm doing this on my partner's Mac) and I find them extremely confusing to use. Is there maybe a third party file manager that will offer me to "merge" the folders by only copying the missing files and leaving the rest alone? Like how Windows Explorer or Dolphin File Manager (Linux) do? Or is my code safe?Įdit: sorry if this is a really stupid question. I was thinking of using the terminal with a command such as cp -R -n -v /path/folder/* /path/target/īut I'm not sure if that will really do what I want. I'm too scared to do that because (a) it will probably then copy all of the files and run of of space on the Mac HD, and (b) it might want to re-upload all the files which would take ages. If I copy paste the folder Finder if I want to "replace" the destination. ![]() The missing 1000 files are about 50 GB which is fine. That's because my Mac HD is only 250 GB so not enough to hold all these files. they are not saved on the Mac HD but only downloaded by the cloud sync app when they're in use. To make it more complicated, the files in the destination folder are "online-only" files, i.e. The destination folder is mostly identical but is missing a random 1000 files here and there, so my aim is to only copy the missing files to the destination folder so that only these missing files will be synced to the cloud. I have a 500 GB folder with lots of subfolders on my external HDD and want to copy it to a folder on the built-in HD which is synced to the cloud.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |