[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Backup script question...



you can do with by making your script a cronjob set to run
every day, (crontab -e) .
cron syntax should be something like

00 16 * * 1-5 /home/export/ken/scripts/my_backup.ksh     ## should run every
weekday at 4:00 PM

for the file transfer part to your server , might try ftp (but that would
probably require your
passwd in clear text, within the script, unless when you create the script,
you use "vi -x my_backup.ksh" should encrypt your shell script source file
[will need to enter a key or passwd
to view contents in vi] or you might try using rcp instead of scp then)

Roger

HTH


----- Original Message ----- 
From: "Ken Keefe" <kjkeefe@siu.edu>
To: <discuss@silug.org>
Sent: Tuesday, June 29, 2004 2:28 PM
Subject: Backup script question...


> I wrote a very basic bash script that tars a set of critical files and
> then scp's the tar file to a server of mine. For right now it asks me
> for a password for the remote user and I enter it by hand. How can I
> accomplish this same sort of thing but in an automated fashion? I'd like
> to be able to add a cron job so it does this everyday at such and such
> time even when I am not around to feed it the password... for obvious
> security reasons, I'd rather not store my password in the script or some
> other file...
>
> What other suggestions do people have for backing stuff up?
>
> I made the silly mistake of typing rm -rf name * instead of rm -rf name*
> and I need to get serious about backing up my data. Luckily I had, just
> by chance, created a tar file of the stuff I lost.
>
> Ken Keefe
>
>
> -
> To unsubscribe, send email to majordomo@silug.org with
> "unsubscribe silug-discuss" in the body.


-
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.