[LBo] Daily Mail backup [was: Moving Home]
Howard Rosen
hrosen33 at highstream.net
Wed Mar 21 22:35:47 CET 2007
On Tue, 2007-03-13 at 06:52 -0400, Anita Lewis wrote:
> On 03/12/2007 05:41 PM Kevin B. O'Brien wrote:
>
> > Anita, how do you do that backup?
>
> Here is my daily mail backup script. Note that the part beginning with
> "time tar" and ending with "ajbackup-log.txt" is one line. cut on the
> dotted lines:
>
> -------ajdailybu---------
> export FN=`date +%Y-%m-%d-%a-%Hh%M.tgz`
>
> time tar czvf /home/ajlewis2/tempbu/ajdaily$FN -T /home/ajlewis2/bin/
> dailytar &> /home/ajlewis2/Desktop/ajbackup-log.txt
>
> /bin/mount /media/zip
>
> mv -f /home/ajlewis2/tempbu/ajdaily$FN /media/zip
>
> umount /media/zip
hrosen70 at linux:~> ./ajdailybu
real 0m0.009s
user 0m0.000s
sys 0m0.008s
mount: /dev/sda4 already mounted or /media/zip100.0 busy
mount: according to mtab, /dev/sda4 is already mounted
on /media/zip100.0
mv: setting attributes for
`/media/zip100.0/ajdaily2007-03-21-Wed-17h28.tgz': Operation not
supported
hrosen70 at linux:~>
Any ideas as to the mv error? Yet there is file
ajdaily2007-03-21-Wed-17h18.tgz that is created.
Thanks,
Howard
> ------end script----
>
Here is the results of running ajdailybu, with appropriate changes made.
> I also have a file called "dailytar" which contains the list of things I
> want to backup. The daily-bu directory is where I throw anything that I
> want to backup on a daily basis. It is usually empty.
>
> -------dailytar-----------
>
> /home/ajlewis2/Documents/mozilla-local-folders/
> /home/ajlewis2/Documents/daily-bu/
> /home/ajlewis2/.mozilla-thunderbird/default/syzagrjn.slt/Mail/
>
> ----------end dailytar---------
>
> Then I have a cron job to run this every day and I keep the zip disk in
> the drive.
>
> Mine is going to a zip drive and each backup is about 2Mb. I don't
> rsync just because I would rather have a few days of backups so I'm not
> writing over any previous backups in this case. I do use rsync for
> other things though, like backing up my jump drive.
>
> Anita
>
> --
> QnA mailing list - To post: QnA at linuxbasics.org
> Site: http://LinuxBasics.org
> List-options: http://LinuxBasics.org/cgi-bin/mailman/listinfo/qna
More information about the QnA
mailing list