Code: Select all
root@xa000000 root]# /DHS3bin/soft_install/bin/bck -save ops
root@xa000000 root]# /DHS3bin/soft_install/bin/bck -restore ops
For the restoration the same directory is used.
Code: Select all
root@xa000000 root]# /DHS3bin/soft_install/bin/bck -save ops
root@xa000000 root]# /DHS3bin/soft_install/bin/bck -restore ops
Code: Select all
ssh-keygen -t rsa -b 2048 -f $HOME/.ssh/id_rsa
Code: Select all
Your identification has been saved in id_rsa.
Your public key has been saved in id_rsa.pub.
Code: Select all
-bash-3.2$ pwd
/home/staff/ims/hunter/.ssh
-bash-3.2$ ls -lha
total 24K
drwx------ 2 hunter ims 66 Mar 1 2007 .
drwx--x--x 24 hunter ims 4.0K Aug 15 2007 ..
-r-------- 1 hunter ims 607 Jul 11 2007 authorized_keys2
-rw------- 1 hunter ims 7.7K Jun 21 2007 known_hosts
Code: Select all
ssh -C -v -2 remote.host.by.name.or.by.ip.address
Code: Select all
#!/bin/sh
DATE=$(date +%Y_%m_%d_%H_%m)
SITE=nameofyourpabx
ssh -v -C -2 remote.host.ip "mkdir -p $HOME/backups-$SITEID/$DATE"
for i in mao acd acc vg; do
scp -v -C -2 /usr4/BACKUP/IMMED/$i remote.host.ip:/$HOME/backups-$SITEID/$DATE/
done
Hi Turlupin, I have managed to do an auto backup using the command as explained above. But I did notice that if I log back in to swinst to check the auto backup setting and logout, the command line is removed from crontab. I might be doing something wrong but I have tried several ways and every single time the line is removed.Add the line (using vi command) : 0 4 * * * /DHS3bin/soft_install/bin/bck -save acd>/dev/null 2>&1
This will perform a save operations of all the acd files under /usr4/BACKUP/IMMED/ every day at 4 am
Code: Select all
(101)xa000000> pwd
/etc
(101)xa000000> ls cron*
cron.deny crontab
cron.d:
kmod
cron.daily:
logrotate slocate.cron tmpwatch
cron.hourly:
logrotate
cron.monthly:
cron.weekly:Code: Select all
[root@xa000000 etc]# cat << EOF > /etc/cron.daily/my_backup
> #!/bin/sh
> DHS3bin/soft_install/bin/bck -save acd>/dev/null 2>&1
> EOF
[root@xa000000 etc]# chmod a+r /etc/cron.daily/my_backup
If someone had a script for this that would also include vmail, I would donate my left pinky to get it2 - I can configure a daily backup (Swinst opt 2,4,2) but the system will only save the mao-acc
3 - I need to save: mao; acc; vg; obstraf and ACD
4 - we have a 4760 server, hence we have set this for a daily backup; 4760, if i'm not mistaken, will ftp any files the usr4/BACKUP/IMMED folder (ONLY)
hence I need to create a process that automatically saves the above files into the IMMED folder.
