Need help with adding folder to dietpi backup

Hello,

how can I backup this folder /home/dietpi/vpn including all files inside ?

I added

+ /home/dietpi/vpn/*

to the backup filter but the folder and the files are not there in my backup…

Any help appreciated :slight_smile:

Usually this is not needed as we do full system backups, which include the home directories as well

Hmm they are included within my system backup.

root@DietPiProd:~# ls -la /mnt/dietpi-backup/data/home/dietpi/
total 28
drwxr-xr-x 2 dietpi dietpi 4096 Jan 27  2023 .
drwxr-xr-x 3 root   root   4096 Feb 24  2023 ..
-rw------- 1 dietpi dietpi  482 Feb 24  2023 .bash_history
-rw-r--r-- 1 dietpi dietpi  220 Aug  4  2021 .bash_logout
-rw-r--r-- 1 dietpi dietpi  571 Aug  8  2021 .bashrc
-rw-r--r-- 1 dietpi dietpi  161 Aug  8  2021 .profile
-rw-r--r-- 1 dietpi dietpi 1684 Jan 26  2023 influxdata-archive_compat.key
root@DietPiProd:~#

can you share your backup configuration file?

+ /mnt/dietpi_userdata/
- /mnt/*
- /media/
+ /home/dietpi/*
+ /etc/default/ddclient
+ /etc/ddclient.conf
+ /var/www/baikal/Specific/db/db.sqlite
+ /etc/tor/torrc
+ /etc/iproute2/rt_tables
+ /var/www/baikal/Specific/db/db.sqlite
+ /etc/unbound/unbound.conf.d/pi-hole.conf
+ /etc/dnsmasq.d/99-edns.conf
+ /home/dietpi/vpn/*
+ /home/dietpi/pihole_scripts/*

all these files/folders are part of the standard backup and there should be no need to add them in addition. As stated above, by default we do full system backups. The only thing excluded are external drives mounted to /mnt

But as I restored it the folders under /home/dietpi whre not restored :face_with_raised_eyebrow:

first we need to ensure that all data are part of the backup. What you can do, remove your added backup rules and create a new backup (new target location) to force a full new backup. Afterwards check if all was included.

It’s included in the backup file…

in this case, they should be part of restore as well. There is just one exception, if they match in size, location and time stamp.

Mhhm it was a new install…so no older folder was existing…

But was not restored…

Are there any logs from the restoration process?

Yes but /home/dietpi/vpn is not on the list?

Could you post the logs?

in the list of the restore?

Actually, I’m confused. Maybe you can describe exactly what are you doing. Which data you are going to copy from A to B

  1. I made a backup of my dietpi
  2. Installed the dietpi completly new because I changed the SD card
  3. restored the backup but the folder /home/dietpi/vpn was not restored.
Restore log from 2024-01-11_14:16:44

2024/01/11 14:16:44 [312097] building file list
2024/01/11 14:16:49 [312097] done
2024/01/11 14:16:49 [312097] .d..t...... ./
2024/01/11 14:16:49 [312097] .d..t...... boot/dietpi/
2024/01/11 14:16:49 [312097] >f..t...... boot/dietpi/.dietpi-autostart_index
2024/01/11 14:16:49 [312097] >f.st...... boot/dietpi/.dietpi-backup_inc_exc
2024/01/11 14:16:49 [312097] >f..t...... boot/dietpi/.hw_model
2024/01/11 14:16:49 [312097] .d..t...... etc/
2024/01/11 14:16:49 [312097] >f..t...... etc/fstab
2024/01/11 14:16:49 [312097] >f..t...... etc/resolv.conf
2024/01/11 14:16:49 [312097] .d..t...... etc/alternatives/
2024/01/11 14:16:49 [312097] .d..t...... etc/pihole/
2024/01/11 14:16:50 [312097] >f.st...... etc/pihole/pihole-FTL.db
2024/01/11 14:16:50 [312097] >f..t...... etc/pihole/pihole-FTL.db-shm
2024/01/11 14:16:50 [312097] >f.st...... etc/pihole/pihole-FTL.db-wal
2024/01/11 14:16:50 [312097] >f..tp..... etc/pihole/pihole.toml
2024/01/11 14:16:50 [312097] >f..t...... etc/pihole/versions
2024/01/11 14:16:50 [312097] .d..t...... etc/pihole/config_backups/
2024/01/11 14:16:50 [312097] >f..tp..... etc/pihole/config_backups/pihole.toml.1
2024/01/11 14:16:50 [312097] >f..t...... etc/pihole/config_backups/pihole.toml.10
2024/01/11 14:16:50 [312097] >f.st...... etc/pihole/config_backups/pihole.toml.11
2024/01/11 14:16:50 [312097] >f..tp..... etc/pihole/config_backups/pihole.toml.2
2024/01/11 14:16:50 [312097] >f..t...... etc/pihole/config_backups/pihole.toml.3
2024/01/11 14:16:50 [312097] >f..t...... etc/pihole/config_backups/pihole.toml.4
2024/01/11 14:16:50 [312097] >f..t...... etc/pihole/config_backups/pihole.toml.5
2024/01/11 14:16:50 [312097] >f..t...... etc/pihole/config_backups/pihole.toml.6
2024/01/11 14:16:50 [312097] >f..t...... etc/pihole/config_backups/pihole.toml.7
2024/01/11 14:16:50 [312097] >f..t...... etc/pihole/config_backups/pihole.toml.8
2024/01/11 14:16:50 [312097] >f.st...... etc/pihole/config_backups/pihole.toml.9
2024/01/11 14:16:50 [312097] .d..t...... etc/systemd/system/
2024/01/11 14:16:50 [312097] >f..t...... etc/systemd/system/dietpi-autostart_custom.service
2024/01/11 14:16:50 [312097] .d..t...... etc/systemd/system/multi-user.target.wants/
2024/01/11 14:16:50 [312097] .d..t...... mnt/
2024/01/11 14:16:50 [312097] .d..t...... mnt/dietpi_userdata/mysql/
2024/01/11 14:16:50 [312097] >f..t...... mnt/dietpi_userdata/mysql/aria_log.00000001
2024/01/11 14:16:50 [312097] >f..t...... mnt/dietpi_userdata/mysql/aria_log_control
2024/01/11 14:16:50 [312097] >f..t...... mnt/dietpi_userdata/mysql/ib_buffer_pool
2024/01/11 14:16:50 [312097] >f.st...... root/.bash_history
2024/01/11 14:16:50 [312097] >f..t...... root/update.txt
2024/01/11 14:16:50 [312097] >f..t...... root/zeit.txt
2024/01/11 14:16:52 [312097] .d..t...... var/backups/
2024/01/11 14:16:52 [312097] >f..t...... var/backups/alternatives.tar.0
2024/01/11 14:16:52 [312097] >f.st...... var/backups/alternatives.tar.1.gz
2024/01/11 14:16:52 [312097] >f.st...... var/backups/alternatives.tar.2.gz
2024/01/11 14:16:52 [312097] >f.st...... var/backups/alternatives.tar.3.gz
2024/01/11 14:16:52 [312097] >f.st...... var/backups/alternatives.tar.4.gz
2024/01/11 14:16:52 [312097] >f.st...... var/cache/ddclient/ddclient.cache
2024/01/11 14:16:52 [312097] .d..t...... var/lib/apt/lists/
2024/01/11 14:16:52 [312097] >f..t...... var/lib/apt/lists/deb.debian.org_debian-security_dists_bookworm-security_InRelease
2024/01/11 14:16:52 [312097] .d..t...... var/lib/apt/lists/partial/
2024/01/11 14:16:52 [312097] .d..t...... var/lib/dhcp/
2024/01/11 14:16:52 [312097] >f.st...... var/lib/dhcp/dhclient.eth1.leases
2024/01/11 14:16:52 [312097] >f..t...... var/lib/dhcp/dhcpd.leases
2024/01/11 14:16:52 [312097] >f..t...... var/lib/dhcp/dhcpd.leases~
2024/01/11 14:16:52 [312097] .d..t...... var/lib/dietpi/dietpi-autostart/
2024/01/11 14:16:52 [312097] .d..t...... var/lib/dpkg/alternatives/
2024/01/11 14:16:52 [312097] >f..t...... var/lib/dpkg/alternatives/php-fpm.sock
2024/01/11 14:16:52 [312097] >f..t...... var/lib/fail2ban/fail2ban.sqlite3
2024/01/11 14:16:52 [312097] >f..t...... var/lib/systemd/random-seed
2024/01/11 14:16:52 [312097] .d..t...... var/lib/systemd/pstore/
2024/01/11 14:16:52 [312097] >f..t...... var/lib/systemd/timers/stamp-phpsessionclean.timer
2024/01/11 14:16:52 [312097] >f..t...... var/lib/systemd/timesync/clock
2024/01/11 14:16:52 [312097] .d..t...... var/lib/tor/
2024/01/11 14:16:52 [312097] >f..t...... var/lib/tor/lock
2024/01/11 14:16:52 [312097] >f..t...... var/lib/tor/state
2024/01/11 14:16:52 [312097] .d..t...... var/lib/unbound/
2024/01/11 14:16:52 [312097] >f..t...... var/lib/unbound/root.key
2024/01/11 14:16:52 [312097] >f.st...... var/log/alternatives.log
2024/01/11 14:16:52 [312097] >f..t...... var/log/btmp
2024/01/11 14:16:52 [312097] >f..t...... var/log/lastlog
2024/01/11 14:16:52 [312097] >f.st...... var/log/php8.2-fpm.log
2024/01/11 14:16:52 [312097] >f.st...... var/log/wtmp
2024/01/11 14:16:52 [312097] >f.st...... var/log/lighttpd/error.log
2024/01/11 14:16:52 [312097] >f.st...... var/log/pihole/FTL.log
2024/01/11 14:16:52 [312097] >f.st...... var/log/pihole/pihole.log
2024/01/11 14:16:52 [312097] >f..t...... var/log/pihole/pihole.log.1
2024/01/11 14:16:52 [312097] >f.st...... var/log/pihole/webserver.log
2024/01/11 14:16:52 [312097] .d..t...... var/tmp/
2024/01/11 14:16:52 [312097] >f.st...... var/tmp/dietpi/logs/dietpi-ramlog.log
2024/01/11 14:16:52 [312097] >f..t...... var/tmp/dietpi/logs/dietpi-ramlog_store/alternatives.log
2024/01/11 14:16:52 [312097] >f..t...... var/tmp/dietpi/logs/dietpi-ramlog_store/btmp
2024/01/11 14:16:52 [312097] >f..t...... var/tmp/dietpi/logs/dietpi-ramlog_store/lastlog
2024/01/11 14:16:52 [312097] >f..t...... var/tmp/dietpi/logs/dietpi-ramlog_store/php8.2-fpm.log
2024/01/11 14:16:52 [312097] >f..t...... var/tmp/dietpi/logs/dietpi-ramlog_store/wtmp
2024/01/11 14:16:52 [312097] >f..t...... var/tmp/dietpi/logs/dietpi-ramlog_store/lighttpd/error.log
2024/01/11 14:16:52 [312097] >f..t...... var/tmp/dietpi/logs/dietpi-ramlog_store/pihole/FTL.log
2024/01/11 14:16:52 [312097] >f..t...... var/tmp/dietpi/logs/dietpi-ramlog_store/pihole/pihole.log
2024/01/11 14:16:52 [312097] >f..t...... var/tmp/dietpi/logs/dietpi-ramlog_store/pihole/pihole.log.1
2024/01/11 14:16:52 [312097] >f..t...... var/tmp/dietpi/logs/dietpi-ramlog_store/pihole/webserver.log
2024/01/11 14:16:52 [312097] cd+++++++++ var/tmp/systemd-private-7bccfde6e1f44f85b1dbc5d960716e8a-openvpn@server.service-TYEc3G/
2024/01/11 14:16:52 [312097] cd+++++++++ var/tmp/systemd-private-7bccfde6e1f44f85b1dbc5d960716e8a-openvpn@server.service-TYEc3G/tmp/
2024/01/11 14:16:52 [312097] .d..t...... var/webmin/
2024/01/11 14:16:52 [312097] >f..t...... var/webmin/blocked
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/miniserv.error
2024/01/11 14:16:52 [312097] >f..t...... var/webmin/miniserv.lastcrons
2024/01/11 14:16:52 [312097] >f..t...... var/webmin/sessiondb.pag
2024/01/11 14:16:52 [312097] .d..t...... var/webmin/locks/
2024/01/11 14:16:52 [312097] .d..t...... var/webmin/modules/system-status/
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/info
2024/01/11 14:16:52 [312097] .d..t...... var/webmin/modules/system-status/history/
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/bin
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/bout
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/cpuidle
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/cpuio
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/cpukernel
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/cpuuser
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/diskused
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/load
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/load15
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/load5
2024/01/11 14:16:52 [312097] >f..t...... var/webmin/modules/system-status/history/maxes
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/memused
2024/01/11 14:16:52 [312097] >f..t...... var/webmin/modules/system-status/history/netcounts
2024/01/11 14:16:52 [312097] >f.st...... var/webmin/modules/system-status/history/procs
2024/01/11 14:16:53 [312097] *deleting   etc/pihole/config_backups/pihole.toml.13
2024/01/11 14:16:53 [312097] *deleting   etc/pihole/config_backups/pihole.toml.12
2024/01/11 14:16:53 [312097] *deleting   var/backups/alternatives.tar.5.gz
2024/01/11 14:16:53 [312097] *deleting   var/lib/systemd/pstore/console-ramoops-0
2024/01/11 14:16:53 [312097] *deleting   var/tmp/systemd-private-219fd45002174cf8aaeaf8444f2a5108-openvpn@server.service-2FO2ZZ/tmp/
2024/01/11 14:16:53 [312097] *deleting   var/tmp/systemd-private-219fd45002174cf8aaeaf8444f2a5108-openvpn@server.service-2FO2ZZ/
2024/01/11 14:16:53 [312097] sent 21,130,306 bytes  received 1,811 bytes  2,486,131.41 bytes/sec
2024/01/11 14:16:53 [312097] total size is 8,771,575,877  speedup is 415.08

I restared now and now I can see the folder :upside_down_face: :melting_face:

means it is resolved?

Yes it’s resolved

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.