Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Pages: 1
Hi,
I can't figure out how to use cron to make a daily backup from my folder.
I want to use something like : 0 0 * * * /path to syncdata.sh
using this script in syncdata.sh:
#!/bin/sh
RSYNC=/usr/bin/rsync
LPATH=/mnt/sda2/r_sync_backup/
RPATH=/mnt/sdb1/www/
$RSYNC -av --progress --size-only $RPATH $LPATH
where do I put it ?
I have cron and rsync enabled in alt-f...
Offline
Why don't you just use Services->System->Backup? It does mostly that...
'cron' does not yet has a configuration page, and its settings are not saved to flash, so you would have to set it every time you reboot the box (Backup cron settings are flash-saved)
Anyway, put your script on disk, e.g., /mnt/sda2/syncdata.sh, save your cron table also on disk, e.g. /mnt/sda2/mycron.lst,
echo '0 0 * * * /mnt/sda2/syncdata.sh' > /mnt/sda2/mycron.lst # to create it
and tell cron to use it:
crontab /mnt/sda2/mycron.lst
and
crontab -l # to list current cron jobs
Offline
Hi Keon91,
Have you seen http://dns323.kood.org/howto:backup it works well and could be just what you are looking for.
Mark
Offline
mbutler257 wrote:
Hi Keon91,
Have you seen http://dns323.kood.org/howto:backup it works well and could be just what you are looking for.
Mark
I can't use that because it uses cron.
I will use backup like jcard suggested.
Thanks!
Offline
Pages: 1