Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3 processes with rsnapshot over ssh #305

Open
2 tasks done
vboa68 opened this issue Aug 3, 2022 · 3 comments
Open
2 tasks done

3 processes with rsnapshot over ssh #305

vboa68 opened this issue Aug 3, 2022 · 3 comments
Labels

Comments

@vboa68
Copy link

vboa68 commented Aug 3, 2022

Checklist

  • I'm reporting a bug
  • I've searched the bugtracker for similar issues, including closed ones.

What did you do?

running rsnapshot manually with rsnapshot daily, or via cron.d file rsnapshot

What happened?

ps - aux reported me 3 pids as in attached file.
At the end.. Warning appears and rollback

2022-08-03_08h41_28

What did you expect to happen

rsnapshot successfull

My configuration

config_version 1.2

snapshot_root /home/vbtest/BCK/
#no_create_root 1

cmd_cp /bin/cp

cmd_rm /bin/rm

cmd_rsync /usr/bin/rsync

cmd_ssh /usr/bin/ssh

cmd_logger /usr/bin/logger

cmd_du /usr/bin/du

cmd_rsnapshot_diff /usr/bin/rsnapshot-diff

#cmd_preexec /path/to/preexec/script

#cmd_postexec /path/to/postexec/script

#retain hourly 6
retain daily 7
retain weekly 4
retain monthly 12
retain yearly 3

verbose 5

loglevel 5

logfile /var/log/VB_rsnapshot.log

lockfile /var/run/rsnapshot.pid

#stop_on_stale_lockfile 0

#rsync_short_args -a
#rsync_long_args --delete --numeric-ids --relative --delete-excluded

ssh_args -i /root/.ssh/id_rsa -p xxxx
rsync_long_args --stats --delete --numeric-ids --relative --delete-excluded

#du_args -csh

#one_fs 0
#include_file /path/to/include/file
#exclude_file /path/to/exclude/file

link_dest 1

#sync_first 0

#use_lazy_deletes 0

#rsync_numtries 0

#linux_lvm_snapshotsize 100M
#linux_lvm_snapshotname rsnapshot
#linux_lvm_vgpath /dev
#linux_lvm_mountpath /path/to/mount/lvm/snapshot/during/backup

backup /home/xxx/ home/xxx/BCK/
backup root@xxx.xxx.xxx.xxx:/mnt/ocUSB/data/diego/files/ home/xxx/diego/

Environment

OS:raspios buster on raspberry PI2
Filesystem:ext4

Other information

No response

@vboa68 vboa68 added the bug label Aug 3, 2022
@djk20
Copy link
Member

djk20 commented Aug 3, 2022 via email

@vboa68
Copy link
Author

vboa68 commented Aug 4, 2022

Hi

I've just re-ran the job.
What i noticed is that it seems rsnapshot will not make any diff from the past daily.1.
Everytime is copying the whole set of files even if NOT changed before.
I'll post some more info when the job will finish

@vboa68
Copy link
Author

vboa68 commented Aug 4, 2022

Hi just finished.. here it is the rsnapshot.log:

require Lchown
Lchown module loaded successfully
Setting locale to POSIX "C"
echo 15751 > /var/run/rsnapshot.pid
/bin/rm -rf /mnt/RS_USB/daily.6/
mv /mnt/RS_USB/daily.5/ /mnt/RS_USB/daily.6/
mv /mnt/RS_USB/daily.4/ /mnt/RS_USB/daily.5/
mv /mnt/RS_USB/daily.3/ /mnt/RS_USB/daily.4/
mv /mnt/RS_USB/daily.2/ /mnt/RS_USB/daily.3/
mv /mnt/RS_USB/daily.1/ /mnt/RS_USB/daily.2/
mv /mnt/RS_USB/daily.0/ /mnt/RS_USB/daily.1/
mkdir -m 0755 -p /mnt/RS_USB/daily.0/
/usr/bin/rsync -av --stats --rsh=/usr/bin/ssh -i /root/.ssh/id_rsa -p xxx
--link-dest=/mnt/xxx/daily.1/data/
root@xxx.xxx.xxx.xxx:/mnt/xxx/data/vbtb/files/
/mnt/xxx/daily.0/data/
receiving incremental file list
created directory /mnt/xxx/daily.0/data

packet_write_wait: Connection to xxx.xxx.x.xxx port xxx: Broken pipe
rsync: connection unexpectedly closed (29433133656 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(235) [receiver=3.1.3]
rsync: connection unexpectedly closed (90358 bytes received so far) [generator]
rsync error: unexplained error (code 255) at io.c(235) [generator=3.1.3]
/usr/bin/logger -p user.err -t rsnapshot[15751] /usr/bin/rsnapshot daily:
ERROR: /usr/bin/rsync returned 255 while processing
root@xxx.xxx.x.xxx:/mnt/xxx/data/vbtb/files/

….

/usr/bin/logger -p user.err -t rsnapshot[15751] WARNING: Rolling back
"data/"
/bin/rm -rf /mnt/xxx/daily.0/data/
/bin/cp -al /mnt/xxx/daily.1/data /mnt/xxx/daily.0/data
touch /mnt/xxx/daily.0/
rm -f /var/run/rsnapshot.pid
/usr/bin/logger -p user.err -t rsnapshot[15751] /usr/bin/rsnapshot daily:
ERROR: /usr/bin/rsnapshot daily: completed, but with some errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants