Backup of Banshee 2.6.2 in Ubuntu 14.04

William Scott Lockwood III scott at guppylog.com
Thu Jul 9 19:40:12 UTC 2015


On Thu, Jul 9, 2015 at 1:43 PM, William Scott Lockwood III
<scott at guppylog.com> wrote:
> If you want to keep backups by date instead (and thus have multiple
> days worth of backup) you could always do something like this:
>
> #!/bin/bash
> # /src is the location of the files you are backing up
> # /dest is the mount point or path that you are backing the files up to
> rsync -avzCSP /src /dest-$(date +%Y%m%d)


D'Oh! One small change to this part. This should read as follows instead:

#!/bin/bash
# /src is the location of the files you are backing up
# /dest is the mount point or path that you are backing the files up to
export DATE=$(date +%Y%m%d)
rsync -avzCSP /src /dest-$DATE

--
W. Scott Lockwood III




More information about the ubuntu-users mailing list