KluthR Posted December 21, 2023 Author Share Posted December 21, 2023 Any other container using the mentioned volume? Quote Link to comment
scissabob Posted December 21, 2023 Share Posted December 21, 2023 2 hours ago, KluthR said: Any other container using the mentioned volume? yes, all of them Quote Link to comment
KluthR Posted December 21, 2023 Author Share Posted December 21, 2023 Then exclude it everywhere except for the main one. Quote Link to comment
scissabob Posted December 21, 2023 Share Posted December 21, 2023 (edited) thanks, I will try tomorrow! have a nice evening and thanks again for your help, edit: it's working now 😊 Edited December 22, 2023 by scissabob Quote Link to comment
jj_uk Posted December 22, 2023 Share Posted December 22, 2023 I'd like to create a script to run after the backup has successfully completed. The script needs to run only if the backup was successful, then: Empty the `/mnt/user/CommunityApplicationsAppdataBackup/appdata-latest/` folder. Copy the folder that was just created by the backup tool to the above path. I've not written any scripts before. Does anyone have any example scripts? Quote Link to comment
KluthR Posted December 22, 2023 Author Share Posted December 22, 2023 Since the plugin is able to call scripts with some status info (dunno if the latest already contains that) it should be possible. If I have some time tomorrow I can write you a sample. Quote Link to comment
jj_uk Posted December 22, 2023 Share Posted December 22, 2023 Thanks for the reply. I came up with this, seems to work. #!/bin/sh # Destination folder that will be cleared and will receive the copied data: dest="/mnt/user/backup/CommunityApplicationsAppdataBackup/appdata-latest" # The expected path of the source data (for sanity checking) src_must_contain="/mnt/user/backup/CommunityApplicationsAppdataBackup/appdata/ab_" # Sent arguments: post-run, destination path, true|false (true on backup success, false otherwise) today=$(date +'%Y-%m-%d_%H%M%S') logfile="/mnt/user/backup/CommunityApplicationsAppdataBackup/appdata/port-run-$today.log" { # required for logging, see EOF for closing brace. src="$2" backup_status="$3" echo "log: $logfile" echo echo "params:" echo "param 1 = $1" echo "param 2 = $2" echo "param 3 = $3" echo if [ $1 != "post-run" ]; then echo "ERROR: param 1 not \"post-run\", exiting." exit 0 fi # check param indicates the backup was successful: if [ $backup_status != "true" ]; then echo "ERROR: backup_status is not true, exiting." exit 0 fi # check source path contains the expected path: if [[ $src != *"$src_must_contain"* ]]; then echo "ERROR: src path appears to be at an unexpected location, exiting." exit 0 fi # check source is a directory: if [ -d $src ]; then echo "source: $src" else echo "ERROR: src is not a directory, exiting." exit 0 fi # check destination is a directory: if [ -d $dest ]; then echo "dest: $dest" else echo "ERROR: dest is not a directory, exiting." exit 0 fi # empty destination directory: rm -rf $dest/* echo "Copying src to dest..." # copy source to destination cp -r $src/ $dest/ echo echo echo "finished, exiting." exit 0 } 2>&1 | tee -a $logfile Quote Link to comment
jj_uk Posted December 22, 2023 Share Posted December 22, 2023 (edited) Actually, it doesn't work.. backup.log and config.json are missing from the copied files. Any idea why? Are these files locked when the port-run script is executed? Edited December 22, 2023 by jj_uk Quote Link to comment
KluthR Posted December 23, 2023 Author Share Posted December 23, 2023 The log os copied as last step I think. But the missing config file is interesting. Let me test some things. Quote Link to comment
Revan335 Posted December 26, 2023 Share Posted December 26, 2023 (edited) This Error Message is nervous. Event: Appdata Backup Subject: [AppdataBackup] Warning! Description: Please check the backup log! Importance: warning '/tmp/Nginx-Proxy-Manager-Official/var/log' does NOT exist! Please check your mappings! Skipping it for now. Yes, this is a temp Path, but its the original Path from the Template. That's what's working when the Docker Container is Running. But actually he is stopped. Can i or you do anything? @KluthR Edited December 26, 2023 by Revan335 Quote Link to comment
clowncracker Posted December 26, 2023 Share Posted December 26, 2023 I want to only keep 4 backups, but the older versions are not getting deleted (5 copies are here). I want to make sure I have my settings set up correctly: Delete backups if older than x days:28 Keep at least this many backups: 4 Quote Link to comment
Kilrah Posted December 26, 2023 Share Posted December 26, 2023 16 minutes ago, clowncracker said: Keep at least this many backups: Quote Link to comment
clowncracker Posted December 26, 2023 Share Posted December 26, 2023 1 hour ago, Kilrah said: So I should leave that blank if I only want to keep 4 backups? Quote Link to comment
Kilrah Posted December 26, 2023 Share Posted December 26, 2023 No it's fine as is, it's just that there is no setting for "don't keep more than X", it's always the days setting that will cause the older ones to be removed. Also note that if there are backup errors deleting is skipped so make sure everything is finishing without error. Quote Link to comment
ConnerVT Posted December 26, 2023 Share Posted December 26, 2023 6 hours ago, clowncracker said: I want to only keep 4 backups, but the older versions are not getting deleted (5 copies are here). I want to make sure I have my settings set up correctly: Delete backups if older than x days:28 If you back up once a week, on the 4th week your oldest backup will be 28 days old. 28 Days Old is not Older Than 28 Days. So you end up with 5 weeks of backups, not 4. Try setting it to 27 days. Quote Link to comment
urbanracer34 Posted December 26, 2023 Share Posted December 26, 2023 (edited) Hello! I was wondering how do I configure this plugin? Does anyone have a guide? It looks very complex. Thanks! Edited December 26, 2023 by urbanracer34 Quote Link to comment
cronner Posted December 27, 2023 Share Posted December 27, 2023 anyone else got problems with "Appdata Backup" not backing up all appdata fodler, only 1 and then xml for the rest? Quote Link to comment
ffhelllskjdje Posted December 27, 2023 Share Posted December 27, 2023 2 minutes ago, cronner said: anyone else got problems with "Appdata Backup" not backing up all appdata fodler, only 1 and then xml for the rest? wow just looked and having the same problem Quote Link to comment
DevXen Posted December 29, 2023 Share Posted December 29, 2023 I'm not sure if this is an issue but I just did my first scheduled backup with this new plugin. And I have VM meta checked as yes. But I couldn't find that or the libvert backed up anywhere in the backups. But as it says VM meta I'd assume it's not backing up the libvert anymore and just the meta data it uses to create the VMs? Either way I want able to find any VM related backup files. But my flash backup was there. Quote Link to comment
Kilrah Posted December 29, 2023 Share Posted December 29, 2023 2 hours ago, DevXen said: Either way I want able to find any VM related backup files Shows up as a vm_meta.tgz archive with the contents of /etc/libvirt/qemu here. 1 Quote Link to comment
DevXen Posted December 29, 2023 Share Posted December 29, 2023 43 minutes ago, Kilrah said: Shows up as a vm_meta.tgz archive with the contents of /etc/libvirt/qemu here. Awesome..I found it. In thank you..10k filesize.. But it's there. Quote Link to comment
warwolf7 Posted December 30, 2023 Share Posted December 30, 2023 Hi, I've set this appdatabackup plugin a couple of month ago, it was working fine until a few backups ago, maybe 2-3weeks. I get this error, tar verification failed [30.12.2023 05:13:10][ℹ️][Dropbox-by-otherguy] Stopping Dropbox-by-otherguy... done! (took 10 seconds) [30.12.2023 05:13:20][ℹ️][Dropbox-by-otherguy] Should NOT backup external volumes, sanitizing them... [30.12.2023 05:13:20][ℹ️][Dropbox-by-otherguy] Calculated volumes to back up: /mnt/user/appdata/dropbox [30.12.2023 05:13:20][ℹ️][Dropbox-by-otherguy] Backing up Dropbox-by-otherguy... [30.12.2023 05:28:07][ℹ️][Dropbox-by-otherguy] Backup created without issues [30.12.2023 05:28:07][ℹ️][Dropbox-by-otherguy] Verifying backup... [30.12.2023 05:32:48][❌][Dropbox-by-otherguy] tar verification failed! Tar said: tar: Removing leading `/' from member names; mnt/user/appdata/dropbox/events/store: Contents differ [30.12.2023 05:32:48][ℹ️][Dropbox-by-otherguy] Starting Dropbox-by-otherguy... (try #1) done! all the other containers are backedup properly and succed. Only this one is giving me trouble. I did sent the error log to the developper, this is the ID "4024f2b1-e1ae-4c4b-b225-5db3bfbbfc99" Quote Link to comment
Revan335 Posted December 30, 2023 Share Posted December 30, 2023 On 12/26/2023 at 1:08 AM, Revan335 said: This Error Message is nervous. Event: Appdata Backup Subject: [AppdataBackup] Warning! Description: Please check the backup log! Importance: warning '/tmp/Nginx-Proxy-Manager-Official/var/log' does NOT exist! Please check your mappings! Skipping it for now. Yes, this is a temp Path, but its the original Path from the Template. That's what's working when the Docker Container is Running. But actually he is stopped. Can i or you do anything? @KluthR Can I or you anything to fix this? Except for leaving the Docker container running permanently, although it does not run during the backup either, because it is backed up and therefore terminated beforehand. Quote Link to comment
whitephoenix117 Posted December 31, 2023 Share Posted December 31, 2023 I'm not sure if this is the correct place for a feature request. I would like to use this plugin to only backup my flash drive. It would be nice to have a global option to skip/disable docker & appdata. Current workaround point app-data to an empty directory turn each docker to "no" My only concern with this is that every time I install a new docker I need to remember to disable its backup. Quote Link to comment
unham Posted December 31, 2023 Share Posted December 31, 2023 Hello, is there any reason that the schedule I set would stop working randomly? I had the auto schedule set to work daily and recently it stopped working. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.