Koozali.org: home of the SME Server
Contribs.org Forums => Koozali SME Server 10.x Contribs => Topic started by: gieres on July 14, 2021, 07:23:55 PM
-
Hi,
Usage : backup a Koozali 9.2 with Koozali 10.0 distant (in other place). Installed smeserver-BackupPC-0.2-8.el7.sme.noarch on Koozali 10
Settings Koozali 10 : create 4096 id_rsa keys with user backuppc and send pub key in authorized_keys2 of 9.2. Connexion tested with user backuppc : ok.
Issues :
1. Error log :
This is the rsync child about to exec /usr/bin/rsync_bpc
Permission denied (publickey).
This ussue can be resolved by :
$Conf{RsyncSshArgs} = $sshPath -l backuppc
2. Unexpected remote arg: 82.64.x.y:/
Running: /usr/bin/rsync_bpc --bpc-top-dir /var/lib/BackupPC --bpc-host-name koozali --bpc-share-name / --bpc-bkup-num 0 --bpc-bkup-comp 3 --bpc-bkup-prevnum -1 --bpc-bkup-prevcomp -1 --bpc-bkup-inode0 2 --bpc-log-level 8 --bpc-attrib-new /usr/bin/ssh\ -l\ backuppc --rsync-path=/usr/bin/rsync --numeric-ids --perms --owner --group -D --links --hard-links --times --block-size=2048 --recursive --checksum-seed=32761 --timeout=72000 --exclude=/var/lib/BackupPC --exclude=/proc --exclude=/tmp --exclude=/sys --exclude=/dev --exclude=/boot --exclude=/mnt --exclude=/media --exclude=/selinux --exclude=/aquota.\* --exclude=/lost+found --exclude=/initrd --exclude=/var/tmp --exclude=/var/lib/mysql --exclude=/var/spool/squid --exclude=/var/qmail/queue --exclude=/home/e-smith/files --exclude=/var/log --exclude=/var/cache/yum --exclude=/var/cache/lemonldap --exclude=/var/cache/pydio --exclude=/var/spool/spamd/.spamassassin/bayes_journal --exclude=/var/cache/lemonldap-ng/sessions/\* --exclude=/var/lib/mlocate/\* --exclude=/var/lib/docker/\* --exclude=/var/lock/fetchmail/\* --exclude=/var/lib/mongo/\* 82.64.x.y:/ /
full backup started for directory /
Xfer PIDs are now 4061
This is the rsync child about to exec /usr/bin/rsync_bpc
bpc_lib_conf_init: topDir = /var/lib/BackupPC, logLevel = 8
bpc_path_create(/var/lib/BackupPC/pc/koozali/0)
bpc_attrib_backwardCompat: WriteOldStyleAttribFile = 0, KeepOldAttribFiles = 0
Unexpected remote arg: 82.64.x.y:/
bpc_sysCall_cleanup: doneInit = 1
RefCnt Deltas for new backup
Uncompressed HT:
Compressed HT:
Done: 0 errors, 0 filesExist, 0 sizeExist, 0 sizeExistComp, 0 filesTotal, 0 sizeTotal, 0 filesNew, 0 sizeNew, 0 sizeNewComp, 2 inode
Parsing done: nFilesTotal = 0
rsync error: syntax or usage error (code 1) at main.c(1359) [sender=3.1.3.0]
rsync_bpc exited with fatal status 1 (256) (rsync error: syntax or usage error (code 1) at main.c(1359) [sender=3.1.3.0])
Xfer PIDs are now
Got fatal error during xfer (No files dumped for share /)
Thanks in advance
-
Try a generic search for your error:
https://duckduckgo.com/?t=ffab&q=backuppc+Unexpected+remote+arg&ia=web
That suggests it is a rsync error.
So chech the host format required by rsync - eg user@host
-
Hi,
No bug really. it's my wrong configuration :
Conf{RsyncSshArgs} = ['-e', '$sshPath -l root']
And Daniel advices to modify in :
Conf{RsyncSshArgs} = ['-e', '$sshPath -C -q -x -l root']
And it's running.
Bye
-
Worth a trip to the wiki or not?
-
wiki or updating the default script
however if you check the man rsync
-C use checksum
-q quiet
-x do not cross filesystem
not sure this is what solved your issue
-
This what is solved is the '-e', I mean.
But I re-test as soon as possible.
-
1. After verification, in smeserver-template, there is nothing in Conf{RsyncSshArgs}.
I suggest to add : ['-e', '$sshPath -l root'] in this template
all the more that in « Known issues », at last, for local backup, it's suggested to change :
Conf{RsyncSshArgs} = ['-e', '$sshPath -l root']
to ...
as if this conf is pre-existent.
What do you think about ?
2. Effectively, it runs without -C -q -x
-
1- the -e is on all both of your options
2- when empty it uses the default from main config. so you need to check that
-
I had used Backuppc before and found it to be very powerful. Using it on SME10 to backup SME9.2 data remotely is new to me. Can the backup data be restored locally on the SME10 server ... this might be a good way to upgrade server from 9.2.
-
i had used it in the past to restore but by using the cli to generate a smeserver.tgz archive and feed it tot the console on a usb drive to restore.
i believe this is documented in the wiki.
you could probably create a partial archive and then restore the remaining huge folders of data later using gui.
-
Thanks for the pointers to additional info. After browsing these pages:
https://wiki.koozali.org/BackupPC#Backup_an_SMEServer
(and https://forums.contribs.org/index.php/topic,53586.0.html )
https://wiki.koozali.org/Backup_server_config
it is good to know that the backup and restore of SME server data/config can be well managed by Backuppc, if the preparation and instructions are followed properly.