rsnapshot logfile problem

    • OMV 2.x
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • rsnapshot logfile problem

      Hi,
      i am using OMV 2.2.13. For a long time I have been using rsnapshot to make backups from the internal hdd ("datavault") to an external usb hdd ("backupvault"). A few days ago i installed the backports kernel to enable USB3 of the usb hdd.

      Today i noticed that i don't get any log entries in OMV for rsnapshot (OMV->diagnosis->system logs->Rsnapshot (Backup)). I cleaned the log when i installed the backports kernel. Since then no entries in the log.
      From my daily mails i conclude that rsnapshot runs every night:


      <div class="codeBox container" data-highlighter="plain" data-filename="Cron /var/lib/openmediavault/cron.d/rsnapshot daily [openmediavault" contenteditable="false">Quellcode: Cron <root@openmediavault> /var/lib/openmediavault/cron.d/rsnapshot daily [openmediavaultQuellcode bearbeiten


      [*]']Checking access rights on target directory structure ...
      [*]... /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/
      [*]... /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam
      [*]... /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault
      [*]starting daily backup for 2cad8837-a5c8-49c5-ae92-7608d5325d53
      [*]echo 30335 > /var/run/rsnapshot-2cad8837-a5c8-49c5-ae92-7608d5325d53.pid
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.5/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.6/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.4/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.5/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.3/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.4/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.2/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.3/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.1/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.2/
      [*]native_cp_al("/media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.0", \
      [*] "/media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.1")
      [*]/usr/bin/rsync -a --delete --numeric-ids \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.0/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.1/
      [*]/usr/bin/rsync -a --delete --numeric-ids --delete-excluded \
      [*] /media/40b4ba73-d5b6-4795-978a-da459c41d280/gemeinsam/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.0/
      [*]touch \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_gemeinsam//Datavault/gemeinsam/daily.0/
      [*]rm -f /var/run/rsnapshot-2cad8837-a5c8-49c5-ae92-7608d5325d53.pid
      [*]Checking access rights on target directory structure ...
      [*]
      [*]-SNIP-
      [*]
      [*]rm -f /var/run/rsnapshot-b233284b-aacc-43fd-bb39-cf6ab3a9f11a.pid
      [*]Checking access rights on target directory structure ...
      [*]... /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/
      [*]... /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup
      [*]... /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault
      [*]starting daily backup for a4ae777d-f5e6-4c6a-8f00-05b2a9b170e8
      [*]echo 30448 > /var/run/rsnapshot-a4ae777d-f5e6-4c6a-8f00-05b2a9b170e8.pid
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.5/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.6/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.4/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.5/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.3/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.4/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.2/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.3/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.1/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.2/
      [*]native_cp_al("/media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.0", \
      [*] "/media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.1")
      [*]/usr/bin/rsync -a --delete --numeric-ids \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.0/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.1/
      [*]/usr/bin/rsync -a --delete --numeric-ids --delete-excluded \
      [*] /media/40b4ba73-d5b6-4795-978a-da459c41d280/backup/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.0/
      [*]touch \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_backups//Datavault/backup/daily.0/
      [*]rm -f /var/run/rsnapshot-a4ae777d-f5e6-4c6a-8f00-05b2a9b170e8.pid
      [*]Checking access rights on target directory structure ...
      [*]... /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/
      [*]... /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo
      [*]... /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault
      [*]starting daily backup for 964c54d0-da7e-4c35-94f4-6c3b65512f15
      [*]echo 30467 > /var/run/rsnapshot-964c54d0-da7e-4c35-94f4-6c3b65512f15.pid
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.5/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.6/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.4/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.5/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.3/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.4/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.2/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.3/
      [*]mv \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.1/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.2/
      [*]native_cp_al("/media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.0", \
      [*] "/media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.1")
      [*]/usr/bin/rsync -a --delete --numeric-ids \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.0/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.1/
      [*]/usr/bin/rsync -a --delete --numeric-ids --delete-excluded \
      [*] /media/40b4ba73-d5b6-4795-978a-da459c41d280/photo/ \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.0/
      [*]touch \
      [*] /media/d0e3cfed-5152-4427-8fb5-da04c258ff54/rs_photo//Datavault/photo/daily.0/
      [*]rm -f /var/run/rsnapshot-964c54d0-da7e-4c35-94f4-6c3b65512f15.pid
      [*]Backups finished.
      [/list]





      I also get an email for "Cron <root@openmediavault> /var/lib/openmediavault/cron.d/rsnapshot weekly [openmediavault]".

      So i conclude from this that rsnaphots is working but it is somehow not logged.

      But when i start the rsnapshot jobs manually from the OMV GUI i get log entries:

      Source Code

      1. [02/Jan/2017:13:19:26] /usr/bin/rsnapshot -c /var/lib/openmediavault/rsnapshot.d/rsnapshot-2cad8837-a5c8-49c5-ae92-7608d5325d53.conf daily: started
      2. [02/Jan/2017:13:19:30] /usr/bin/rsnapshot -c /var/lib/openmediavault/rsnapshot.d/rsnapshot-2cad8837-a5c8-49c5-ae92-7608d5325d53.conf daily: completed successfully
      3. [02/Jan/2017:13:19:38] /usr/bin/rsnapshot -c /var/lib/openmediavault/rsnapshot.d/rsnapshot-faeb88c1-b2a7-4029-9ceb-b6f8b4194cad.conf daily: started
      4. [02/Jan/2017:13:19:46] /usr/bin/rsnapshot -c /var/lib/openmediavault/rsnapshot.d/rsnapshot-faeb88c1-b2a7-4029-9ceb-b6f8b4194cad.conf daily: completed successfully
      5. [02/Jan/2017:13:19:56] /usr/bin/rsnapshot -c /var/lib/openmediavault/rsnapshot.d/rsnapshot-b233284b-aacc-43fd-bb39-cf6ab3a9f11a.conf daily: started
      6. [02/Jan/2017:13:19:57] /usr/bin/rsnapshot -c /var/lib/openmediavault/rsnapshot.d/rsnapshot-b233284b-aacc-43fd-bb39-cf6ab3a9f11a.conf daily: completed successfully
      7. [02/Jan/2017:13:20:18] /usr/bin/rsnapshot -c /var/lib/openmediavault/rsnapshot.d/rsnapshot-a4ae777d-f5e6-4c6a-8f00-05b2a9b170e8.conf daily: started
      8. [02/Jan/2017:13:20:44] /usr/bin/rsnapshot -c /var/lib/openmediavault/rsnapshot.d/rsnapshot-a4ae777d-f5e6-4c6a-8f00-05b2a9b170e8.conf daily: completed successfully
      9. [02/Jan/2017:13:20:51] /usr/bin/rsnapshot -c /var/lib/openmediavault/rsnapshot.d/rsnapshot-964c54d0-da7e-4c35-94f4-6c3b65512f15.conf daily: started
      10. [02/Jan/2017:13:21:27] /usr/bin/rsnapshot -c /var/lib/openmediavault/rsnapshot.d/rsnapshot-964c54d0-da7e-4c35-94f4-6c3b65512f15.conf daily: completed successfully
      Any ideas how i can fix this?

      Thanks in advance,
      Bebass
    • Mine is working. Not sure how it would log when manually run but not scheduled runs. Are you sure logrotate isn't just moving the log to an archive? This would mean you wouldn't see the logs in the OMV web interface log viewer anymore. The default rsnapshot package includes a logrotate.d config file that rotates the logs once a month.
      omv 4.1.12 arrakis | 64 bit | 4.15 proxmox kernel | omvextrasorg 4.1.11
      omv-extras.org plugins source code and issue tracker - github

      Please read this before posting a question and this and this for docker questions.
      Please don't PM for support... Too many PMs!