2
votes
0answers
96 views

How can I run a script when I unmount a particular usb drive?

I am trying to sync between a folder and usb drive, so that a) when I plug in a particular usb drive, a script runs to copy any newer files from the usb to the folder; and b) when I unmount the ...
6
votes
3answers
708 views

directory name with space and bash

I'd like to exclude the directories "temp" and "Ubuntu One/" from backup. What is the correct escaping of the space???? RSYNCCONF="--delete --exclude=.* --exclude=temp/" Thanks in advance! Chris ...
2
votes
4answers
4k views

Script for an incremental file system backup

I'd like to run the following incomplete script weekly in as a cron job to backup my home directory to an external drive mounted as /mnt/backups #!/bin/bash # TIMEDATE=$(date +%b-%d-%Y-%k:%M) ...