cron job
Stefano Doni
stefano.doni at gmail.com
Tue Dec 2 15:24:15 UTC 2008
Hi,
first of all you might want to try rsync instead of wget, it has some cool
algorithms to save bandwith, provided that you have to transfer files that
are modified often.
Regarding cron jobs, there are two approaces. You can put the job into a
user's crontab, or into systemwide crontabs.
You can accomplish the first this way:
$ crontab -e
and then edit your crontab, inserting your command with the desired
periodicity.
Otherwise, you can create your crontab line in a file - say 'mysync' - and
put it into:
/etc/cron.d/
For crontab job syntax, see man 5 crontab.
I guess the less invasive way is the first one, perhaps it is best to use
the second one only for system-wide activities.
2008/12/2 OOzy Pal <oozypal at gmail.com>
> Hello,
>
> I need to move big files from one remote server to other remote
> server. I think I can do this by cron jobs. The urls for the backup
> data is for example
>
> www.xyz.com/file1.tar.
> www.xyz.com/file2.tar
>
> I do
>
> wget -c -t 999 www.xyz.com/file1.tar
> wget -c -t 999 www.xyz.com/file2.tar
>
> How can I make a cron job to automatically move these files between
> the two servers.
>
>
>
>
> --
> OOzy
> Ubuntu-Hardy (7.10)
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20081202/66e23ef5/attachment.html>
More information about the ubuntu-users
mailing list