Mailinglist Archive: opensuse (4237 mails)
| < Previous | Next > |
backup script in cron.weekly
- From: Taavi Dovnar <taavid@xxxxxxxxxxxxxxxxx>
- Date: Tue, 17 Aug 2004 09:54:51 +0300 (EEST)
- Message-id: <Pine.LNX.4.58.0408170945130.6306@xxxxxxxxxxxxx>
In previous server (redhat) I had one script, which made backup every
week. Now in Suse I can't get it to work.
I made a file /etc/cron.weekly/archiving (like before):
--
#!bin/sh
/usr/local/sbin/archive.sh
--
The script did his work in redhat machine.
--
#!/bin/bash
filestobackup="/etc /home/user1 ..."
kp=$(date +%e-%m-%Y)
mount -t smbfs -o username=xxx,password=xxx '\\server2\backup' '/var/local/backup'
tar -czPf /var/local/backup/backup-server1-$kp.tar.gz $filestobackup
umount '/var/local/backup'
--
I did /etc/init.d/cron restart. In /var/log/messages there are:
Aug 14 04:29:00 www /USR/SBIN/CRON[12070]: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.weekly)
Aug 14 04:30:00 www run-crons[12073]: archiving returned 1
What could be the problem?
week. Now in Suse I can't get it to work.
I made a file /etc/cron.weekly/archiving (like before):
--
#!bin/sh
/usr/local/sbin/archive.sh
--
The script did his work in redhat machine.
--
#!/bin/bash
filestobackup="/etc /home/user1 ..."
kp=$(date +%e-%m-%Y)
mount -t smbfs -o username=xxx,password=xxx '\\server2\backup' '/var/local/backup'
tar -czPf /var/local/backup/backup-server1-$kp.tar.gz $filestobackup
umount '/var/local/backup'
--
I did /etc/init.d/cron restart. In /var/log/messages there are:
Aug 14 04:29:00 www /USR/SBIN/CRON[12070]: (root) CMD ( rm -f /var/spool/cron/lastrun/cron.weekly)
Aug 14 04:30:00 www run-crons[12073]: archiving returned 1
What could be the problem?
| < Previous | Next > |