31
Blogs / Re: Linux programs and Bash scripts to consolidate photos and begin a slideshow
« Last post by Dragon on August 26, 2024, 22:49:56 »Unfortunately, OneDrive and User Account Control seems to make it more difficult to backup files now. Since my last update on this thread, I got a new computer with Windows 11. I had a few files that I wanted to backup to my external storage drive. Robocopy would run, but it wasn't picking up any of my new files that were in my Documents (under OneDrive by default now) folder. I tried multiple settings, even got the files so that they were local and not just in the OneDrive cloud, unlinked OneDrive, and still it was having trouble copying the files. I found that it was just easier to install Cygwin with rsync.
It took a bit to sort out which directories I wanted to exclude, since I don't need all the extra AppData that Windows wants to keep, but I do want most of the other stuff within my User directory. I eventually came up with this:
And after the dry-run was confirmed...
It took a bit to sort out which directories I wanted to exclude, since I don't need all the extra AppData that Windows wants to keep, but I do want most of the other stuff within my User directory. I eventually came up with this:
Code: [Select]
rsync -avhk --dry-run --exclude "AppData/*" --exclude "Application Data" --exclude "Local Settings" --exclude "ntuser*" --exclude "NTUSER*" --exclude "Recent/*" --exclude "*.lnk" --exclude "LocalLow/*" --exclude "Cookies/*" --exclude "Searches/*" --exclude "SendTo/*" --exclude "Start Menu/*" /cygdrive/c/Users/drago/ /cygdrive/d/Nathaniel/ >> /cygdrive/d/Nathaniel/rsync.backup.20240826.logAnd after the dry-run was confirmed...
Code: [Select]
rsync -avhk --exclude "AppData/*" --exclude "Application Data" --exclude "Local Settings" --exclude "ntuser*" --exclude "NTUSER*" --exclude "Recent/*" --exclude "*.lnk" --exclude "LocalLow/*" --exclude "Cookies/*" --exclude "Searches/*" --exclude "SendTo/*" --exclude "Start Menu/*" /cygdrive/c/Users/drago/ /cygdrive/d/Nathaniel/ >> /cygdrive/d/Nathaniel/rsync.backup.20240826.log
Recent Posts

