Open Mastergalen opened 4 years ago
I encountered the same issue. It looks like restic output is written to /var/log/backup-last.log
rather than /var/log/cron.log
. After sending a SIGUSR1
signal to the restic process, I was able to view the progress report in /var/log/backup-last.log
.
I encountered the same issue. It looks like restic output is written to
/var/log/backup-last.log
rather than/var/log/cron.log
. After sending aSIGUSR1
signal to the restic process, I was able to view the progress report in/var/log/backup-last.log
.
Thanks! For others also wanting to check progress, here's how to do it. You can execute the commands directly on the host system (you don't need to be inside the container for this to work):
pgrep -f restic
or pidof restic
, or use the "raw" method of ps -ef | grep "[r]estic"
(the encased [r]
will make it so you only get the line with the actual restic process, but not the current "grep restic" process line). Example output:
root@ubuntu:~# ps -ef | grep -E "[r]estic"
root 23852 23847 2 05:59 ? 00:12:58 restic backup /data --tag=
kill -SIGUSR1 <pid>
, so for the example above it would be kill -SIGUSR1 23852
(23847
would be the parent process PID (PPID)).docker exec <container-name> tail /var/log/backup-last.log
, e.g.:
root@ubuntu:~# docker exec restic-backup tail /var/log/backup-last.log
...
[7:59:38] 20.61% 102383 files 66.617 GiB, total 380366 files 323.189 GiB, 0 errors ETA 80:29:11
/data/backup/appdata/ab_20230906_010003/plex.tar.gz
/data/backup/appdata/ab_20230907_010001/nextcloud.tar.gz
I would like to check the progress of my backups but have been unable to get the progress to print using
SIGUSR1
, as documented in the restic docs.The steps I followed inside the Docker container are:
Send
SIGUSR1
signal to PID97
No progress is printed to
/var/log/cron.log
.I also tried viewing stdout for PID
97
withtail -f /proc/97/fd/1
, but still nothing, unfortunately.