Hello,
I tried to set up a backup of my windows computers to a FreeBSD server, using Rsync and cron through Freenas WebGUI. But nor the rsync service nor the cron jobs could work, and, moreover, I could not find an explanation for that. Thus I try now to implement the same process with FreeBSD command line.
I can access the FreeBSD server with an openssh console (in fact minty console) on my Windows desktop. The rsync command works now (thanks to some help from guys on this forum)
I just moved one file in order to show that work is done.
Then I did put this command in a script (very basic, this is my first script ever)
And this script works also, as it can be seen below
Now I want to have the task done by a cron task. I searched some documentation on cron and crontabs, and tried to implement them, but it does not work and I would not make mistakes.
Apparently cron is running
Where now should I put my cron task and how? The documentation and some posts here say to edit the right table with a command "crontab -e". But if I issue this command as is, I get "commnand not found". Should I specify the full path to a crontab ? But which one ?
I wish I could find a howto compatible with my FreeBSD 7.3 so that I don't bother people here, but the howtos I could find rarely say if they are obsolete or not!
Gabier
I tried to set up a backup of my windows computers to a FreeBSD server, using Rsync and cron through Freenas WebGUI. But nor the rsync service nor the cron jobs could work, and, moreover, I could not find an explanation for that. Thus I try now to implement the same process with FreeBSD command line.
I can access the FreeBSD server with an openssh console (in fact minty console) on my Windows desktop. The rsync command works now (thanks to some help from guys on this forum)
Code:
$ rsync -avz --delete Gabriel@192.168.1.103:/cygdrive/E/gabriel/ /mnt/RAID1A/gabriel/backup/mir_D83/gabriel
receiving incremental file list
deleting Essai/Guide d'Utilisateur.rtf
./
Guide d'Utilisateur.rtf
Essai/
sent 3061 bytes received 982080 bytes 131352.13 bytes/sec
total size is 20771234648 speedup is 21084.53
Then I did put this command in a script (very basic, this is my first script ever)
Code:
#!/bin/sh
rsync -avz --delete Gabriel@192.168.1.103:/cygdrive/E/gabriel/ /mnt/RAID1A/gabriel/backup/mir_D83/gabriel
Code:
$ /mnt/RAID1A/gabriel/scripts/cron_mirror.sh
receiving incremental file list
deleting Essai/Guide d'Utilisateur.rtf
./
Guide d'Utilisateur.rtf
Essai/
sent 3061 bytes received 982080 bytes 115898.94 bytes/sec
total size is 20771234648 speedup is 21084.53
Apparently cron is running
Code:
freenas:~# ps auxw | grep cron
root 1878 0.0 0.1 3240 1056 ?? Ss 9:24AM 0:00.02 /usr/sbin/cron -s
root 6093 0.0 0.1 3364 940 p0 S+ 3:42PM 0:00.00 grep cron
I wish I could find a howto compatible with my FreeBSD 7.3 so that I don't bother people here, but the howtos I could find rarely say if they are obsolete or not!
