Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Apps and Programs
AppleScript/Script Editor Help!!!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="djames42" data-source="post: 403665" data-attributes="member: 13241"><p>This would probably be much easier (and faster) with a Unix command...</p><p></p><p>[CODE]tar cf - ~/Movies | (cd /Volumes/External\ Hard\ Drive/backup_dir ; tar xf -)</p><p>[/CODE]</p><p></p><p>This will recursively take everything in your movies directory and copy it to the external hard drive named "External Hard Drive" into a directory called backup_dir.</p><p></p><p>It's a very stupid script though -- it will copy files that have already been copied and overwrite what's already there. It could (fairly) easily be rewritten to check for existing files.</p><p></p><p>Also check the manpage for the <a href="http://developer.apple.com/documentation/Darwin/Reference/Manpages/man1/rsync.1.html" target="_blank">rsync</a> command. It supports backing up locally (as well as to remote systems) and may prevent duplicating your efforts as in the above script. Either way, you can schedule these jobs to run via <a href="http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man8/cron.8.html" target="_blank">cron</a>.</p></blockquote><p></p>
[QUOTE="djames42, post: 403665, member: 13241"] This would probably be much easier (and faster) with a Unix command... [CODE]tar cf - ~/Movies | (cd /Volumes/External\ Hard\ Drive/backup_dir ; tar xf -) [/CODE] This will recursively take everything in your movies directory and copy it to the external hard drive named "External Hard Drive" into a directory called backup_dir. It's a very stupid script though -- it will copy files that have already been copied and overwrite what's already there. It could (fairly) easily be rewritten to check for existing files. Also check the manpage for the [URL="http://developer.apple.com/documentation/Darwin/Reference/Manpages/man1/rsync.1.html"]rsync[/URL] command. It supports backing up locally (as well as to remote systems) and may prevent duplicating your efforts as in the above script. Either way, you can schedule these jobs to run via [URL="http://developer.apple.com/DOCUMENTATION/Darwin/Reference/ManPages/man8/cron.8.html"]cron[/URL]. [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Apps and Programs
AppleScript/Script Editor Help!!!
Top