![]() Rsync -r /Users/yourname/Documents /Volumes/ExternalDrive/ So on the 1st minute of the 4th hour, assuming your Mac is awake, that will archive your Documents folder to your external hard drive.Īnd if you just want to sync your Documents folder to that external drive, noncompressed, try rsync: ![]() Type “crontab -e”, and you’ll get a file where you can type fun things like:ġ 4 * * * tar cvfz /Volumes/ExternalDrive/MySuperSecretDocuments.tgz /Users/yourname/Documents Gives you a gzipped tarball of your Documents folder.Īnd then, for the bonus, you can start playing with the crontab to schedule things. Tar cvfz /Volumes/ExternalDrive/MySuperSecretDocuments.tgz /Users/yourname/Documents ![]() And you can gzip while you tar with a command line switch: “Tar” literally creates an uncompressed file of everything you ask it to add. I was looking for an app but didn’t like the implementation and so I tried unrar you can get through homebrew and it also works so nice.įWIW, if you’re talking about archiving on the command line “tar” and “gzip” are your friends. I archived a lot of old docs with Winrar back in my Windows days some 20 years ago.
0 Comments
Leave a Reply. |