backupninja issueshttps://0xacab.org/liberate/backupninja/-/issues2020-08-14T13:27:05Zhttps://0xacab.org/liberate/backupninja/-/issues/8520mysql handler with nodata parameter and no compression fails2020-08-14T13:27:05ZGhost Usermysql handler with nodata parameter and no compression fails<pre>
Warning: bash: -c: line 0: syntax error near unexpected token `-r' bash: -c: line 0: `set -o pipefail ; ( /usr/bin/mysqldump --defaults-extra-file=/etc/mysql/debian.cnf --lock-tables --complete-insert --add-drop-table --quick --quo...<pre>
Warning: bash: -c: line 0: syntax error near unexpected token `-r' bash: -c: line 0: `set -o pipefail ; ( /usr/bin/mysqldump --defaults-extra-file=/etc/mysql/debian.cnf --lock-tables --complete-insert --add-drop-table --quick --quote-names --ignore-table=local.cache local; /usr/bin/mysqldump --defaults-extra-file=/etc/mysql/debian.cnf --lock-tables --complete-insert --add-drop-table --quick --quote-names --no-data local cache ) -r '/backup/hourly/sqldump/local.sql''
Warning: Failed to dump mysql databases local
</pre>
It fails obviously, as in the code we can see:
DUMP="( $DUMP; $DUMP_STRUCT )"
execstr="$DUMP -r '$dumpdir/${db}.sql'"
and it absolutely does not have any sense. Unfortunately I do not know how to fix it, as "-r" overwrites the content and cannot be used two times in the row.
ubuntu 14.04, backupninja 1.0.1-2
*(from redmine: created on 2015-01-03)*https://0xacab.org/liberate/backupninja/-/issues/11268rdiff test_connection fails for no reason2020-08-14T13:26:48ZKarlo Dautovićrdiff test_connection fails for no reasonOur rdiff backups often randomly fail because of connection tests, but our connection works all the time. If we disable connection tests with `testconnect = no` the backups succeed every time. I've checked the test_connection function an...Our rdiff backups often randomly fail because of connection tests, but our connection works all the time. If we disable connection tests with `testconnect = no` the backups succeed every time. I've checked the test_connection function and it looks simple enough. There is no relevant output in any logs, even at the highest debug level, and with the addition of ssh -vvv. Perhaps a more robust test might be better.https://0xacab.org/liberate/backupninja/-/issues/11277Debian 9 wrong duplicity version detection2020-08-14T13:22:59ZNikitaDebian 9 wrong duplicity version detectionii backupninja 1.0.1-2 all lightweight, extensible meta-backup system
duplicity 0.7.11-1 amd64 encrypted bandwidth-effic...ii backupninja 1.0.1-2 all lightweight, extensible meta-backup system
duplicity 0.7.11-1 amd64 encrypted bandwidth-efficient backup
It creates sshoptions to --scp-command
as it is in code
if [ "$duplicity_major" -ge 0 -a "$duplicity_minor" -ge 6 -a "$duplicity_sub" -ge 17 ]; then
returns falsehttps://0xacab.org/liberate/backupninja/-/issues/11284Are Rolling Backup Files Possible?2020-08-14T13:22:24ZSam KatzAre Rolling Backup Files Possible?I do not use /var for my backups. Instead I have moved them OFF disk to a 2TB HDD that has but one function: to store my backups. But even a 2TB HDD can fill up relatively fast even with weekly backups. Is there any way to set it up so t...I do not use /var for my backups. Instead I have moved them OFF disk to a 2TB HDD that has but one function: to store my backups. But even a 2TB HDD can fill up relatively fast even with weekly backups. Is there any way to set it up so that after X number of backups the OLDEST backup would simply fall off, and be replaced by the NEWEST backup. A small thing -- worst comes to worse once a month or there about I simply delete the oldest backups this freeing up space for newer backups. Still it would be a major improvement if you could **automate **the process, or **choose to do it manually**.
General Comment: I am very impressed with Backupninja. Not overly complex, fairly easy to use, highly flexible, scalable. I have a very small network I need to backup. While it is all backed up, it happens maybe once or twice a year MANUALLY using the dd and tar commands across a network. This is NOT an optimal way to back up the machine. Starting tomorrow night 80% of the machine will now be AUTOMATICALLY be backed up WEEKLY. For the time being only my Workstation will be backed up, until we can figure out how to back up the entire network. I have been looking for a program like Backupninja for a long time. Thank you to all of you who developed this program. I only see this backup untility become ever more popular over time.https://0xacab.org/liberate/backupninja/-/issues/11280su: Unrecognized option "--delete"2018-07-10T23:25:33ZCtaquesu: Unrecognized option "--delete"Rsync fails with this error (sorry it's in french):
``` bash
➜ /etc sudo backupninja -d -t -n
Debug: check_perms /etc/backup.d
Debug: perms: drwxrwx---
Debug: gperm: rwx
Debug: wperm: ---
Debug: check_perms /etc/backup.d/10-home_WD-Cyp...Rsync fails with this error (sorry it's in french):
``` bash
➜ /etc sudo backupninja -d -t -n
Debug: check_perms /etc/backup.d
Debug: perms: drwxrwx---
Debug: gperm: rwx
Debug: wperm: ---
Debug: check_perms /etc/backup.d/10-home_WD-Cyprien.rsync
Debug: perms: -rw-------
Debug: gperm: ---
Debug: wperm: ---
Info: >>>> starting action /etc/backup.d/10-home_WD-Cyprien.rsync (because of --now)
Debug: yes
Debug: executing handler in locked section controlled by /var/lock/backupninja/_etc_backup.d_10-home_WD-Cyprien.rsync
Info: Syncing /etc on /mnt/WD-Cyprien//Backup-Data-Yoga//etc//...
Debug: nice -n 0 /usr/bin/rsync "-av --delete --recursive" //etc/ /mnt/WD-Cyprien//Backup-Data-Yoga//etc//
su : option non reconnue « --delete »
Syntaxe : su [options] [IDENTIFIANT]
Options :
-c, --command COMMANDE passer la commande COMMANDE à
l'interpréteur de commande appelé ;
-h, --help afficher ce message d'aide et quitter ;
-, -l, --login utiliser un interpréteur de commandes
initial (« login shell ») ;
-m, -p,
--preserve-environment ne pas réinitialiser les variables
d'environnement et conserver le même
interpréteur de commandes ;
-s, --shell SHELL utiliser SHELL comme interpréteur de
commandes à la place de celui défini
par défaut dans le fichier passwd.
Fatal: Rsync error 2 when trying to transfer /etc
Fatal: <<<< finished action /etc/backup.d/10-home_WD-Cyprien.rsync: FAILED
Debug: send report to root
send-mail: fatal: open /etc/postfix/main.cf: No such file or directory
Can't send mail: sendmail process failed with error code 75
Info: FINISHED: 1 actions run. 1 fatal. 0 error. 0 warning.
```
this is my configuration file :
[backupninja.conf](https://hastebin.com/babikesoyi.ini)
[backup config file](https://hastebin.com/zegagoxohi.ini)
backupninja : Version: 1.0.1-2
rsync: Version: 3.1.2-1ubuntu0.1