Great manual Crushdepth, do you already have the restore tested and described step-by-step ?
Cheers,
Johan
DasUli wrote:Just for the record, i formatted the usb drive with ext4, now it´s working fine. The problem was the NTFS file system. Thanks for input, Mike!
bramschats wrote:Great guide crushdepth,
If you only could at email log sending,which is not working for me so far, at your howto it would be complete.......
bramschats wrote:Regor,
thnx, i've made the script and crontab entry and put in my settings as discribed in http://forum.qnapclub.de/viewtopic.php?f=208&t=10097 how can i test this is working?
thnx in advance.
I've just found this http://forum.qnapclub.de/viewtopic.php?f=208&t=10097 !
And as I don't speak germain can someone translate this ? I think it about a rsnashot GUI ....
bramschats wrote:Regor,
sorry i meant this threat viewtopic.php?f=22&t=13025&start=45#p104819 for emailing.....
MAIL_TO="my@email.com"
MAIL_HEADER_TO="Me <my@email.com>"
MAIL_HEADER_FROM="QNAP <qnap@email.com>" for trying, comment the last ligne with # where the temp log is remove and... run it and when it's ok uncomment the line
Add the alias in to /etc/config/ssmtp/revaliases...
cmd_du /opt/bin/du
# commande post execution
cmd_postexec /share/MD0_DATA/System/rsnapshot_log.shI have created the script in /share/MD0_DATA/System/rsnapshot_log.sh with the script and edited my mail settings.
MAIL_TO="my@email.com"
MAIL_HEADER_TO="Me <my@email.com>"
MAIL_HEADER_FROM="QNAP <qnap@email.com>"
I have made a crontab entry: 55 23 * * * /share/MD0_DATA/System/rsnapshot_log.sh
But how can i start the script and make it executable?
Do i need to add this in this file?
Add the alias in to /etc/config/ssmtp/revaliases...
I did put this line in in: /opt/etc/rsnapshot.conf beneath:
cmd_du /opt/bin/du
# commande post execution
cmd_postexec /share/MD0_DATA/System/rsnapshot_log.sh
[/share/MD0_DATA/System] # /share/MD0_DATA/System/rsnapshot_log.sh
----------------------------------------------------------------------------
rsnapshot encountered an error! The program was invoked with these options:
/opt/bin/rsnapshot du
----------------------------------------------------------------------------
ERROR: /opt/etc/rsnapshot.conf on line 62:
ERROR: cmd_postexec /share/MD0_DATA/System/rsnapshot_log.sh
ERROR: ---------------------------------------------------------------------
ERROR: Errors were found in /opt/etc/rsnapshot.conf,
ERROR: rsnapshot can not continue. If you think an entry looks right, make
ERROR: sure you don't have spaces where only tabs should be.
[/share/MD0_DATA/System] ## commande post execution
cmd_postexec /share/MD0_DATA/System/rsnapshot_log.sh# commande post execution
cmd_postexec /share/MD0_DATA/System/rsnapshot_log.sh
What is going wrong here.
0 */4 * * * /opt/bin/rsnapshot hourly
30 23 * * * /opt/bin/rsnapshot daily
30 22 * * 0 /opt/bin/rsnapshot weekly
30 21 1 * * /opt/bin/rsnapshot monthly[~] # rsnapshot hourly
echo 21496 > /opt/var/run/rsnapshot.pid
/opt/bin/rm -rf /opt/var/rsnapshot/hourly.5/
mv /opt/var/rsnapshot/hourly.4/ /opt/var/rsnapshot/hourly.5/
mv /opt/var/rsnapshot/hourly.3/ /opt/var/rsnapshot/hourly.4/
mv /opt/var/rsnapshot/hourly.2/ /opt/var/rsnapshot/hourly.3/
mv /opt/var/rsnapshot/hourly.1/ /opt/var/rsnapshot/hourly.2/
mv /opt/var/rsnapshot/hourly.0/ /opt/var/rsnapshot/hourly.1/
mkdir -m 0755 -p /opt/var/rsnapshot/hourly.0/
/opt/bin/rsync -a --delete --numeric-ids --relative --delete-excluded \
--link-dest=/opt/var/rsnapshot/hourly.1/localhost/ \
/share/MD0_DATA/Public /opt/var/rsnapshot/hourly.0/localhost/
touch /opt/var/rsnapshot/hourly.0/
/share/MD0_DATA/System/rsnapshot_log.sh
rm -f /opt/var/run/rsnapshot.pid
[~] #Return to Remote Replication/ Disaster Recovery
Users browsing this forum: No registered users and 0 guests