rzerres / dsnap-sync Goto Github PK
View Code? Open in Web Editor NEWThis project forked from baodrate/snap-sync
Use snapper snapshots to backup to external drive
License: GNU General Public License v2.0
This project forked from baodrate/snap-sync
Use snapper snapshots to backup to external drive
License: GNU General Public License v2.0
Hi,
I get this error when running dsnap-sync to backup to a usb disk. See log below, disk space is definitely not an issue (free: 54% on source, 1% on target).
Also - any instructions to restore a backup if needed?
Cheers,
Nils
~ >>> sudo dsnap-sync -v -c root [130]
Select backup target...
0) /run/media/nils/Backups (type=btrfs,uuid=800ec8c9-a130-403c-b303-242ad5d0faa0,subvolid=5,subvol=/)
x) Exit
Enter a number: 0
Prepare configuration structures...
Performing backups...
Performing backup for config 'root'...
time elapsed [0:09:26] | avg rate [40.3MiB/s] | rate [40.3MiB/s] | transmitted [22.3GiB] | [==============================================================================> ] 96% | time remaining [ ]
Finalize backups for config 'root'...
Invalid snapshot 'backup'.
ERROR: Updating snapper metadata for source snapshot id 'Please check for sufficiant space.\033[0m\n' failed.
ERROR: Updating snapper metadata for source snapshot id '135' failed.
Illegal snapshot.
Performing cleanup for config 'root'...
Backup complete: id='135', config='root'
Backup run completed!
Re.
Line 2373 in 79fcb07
snapper does it be providing an empty value for the key to be removed, e.g.
snapper -c <CONFIG> modify --userdata "key-to-be-removed=" <NN>
Hi,
when I try to run make install I get this error:
$ sudo -s
[root@pc1-desktop dsnap-sync]# make install
/bin/sh: ./find_snapper_config: Keine Berechtigung
The platform is Arch Linux.
Please advise how to fix this issue.
THX
Currently, it fails citing that there is no configuration available.
rrs@priyasi:/var/tmp/Debian-Build/Result$ sudo dsnap-sync -c homedir -c etc
0) /media/rrs/TOSHIBA (type=btrfs,uuid=439e297a-96a5-4f81-8b3a-24559839539d,subvolid=5,subvol=/)
x) Exit
Enter a number: 0
sudo: unknown user: rrs
rrs rrs rrs
sudo: unable to initialize policy plugin
sudo: unknown user: rrs
rrs rrs rrs
sudo: unable to initialize policy plugin
Error: Missing a snapper template dsnap-sync to configure the snapper subvolume homedir in /etc/snapper/config-templates on
Error: Did you miss to install the dsnap-sync's default snapper template on ?
sudo: unknown user: rrs
rrs rrs rrs
sudo: unable to initialize policy plugin
sudo: unknown user: rrs
rrs rrs rrs
sudo: unable to initialize policy plugin
Error: Missing a snapper template dsnap-sync to configure the snapper subvolume etc in /etc/snapper/config-templates on
Error: Did you miss to install the dsnap-sync's default snapper template on ?
Backup run completed!
sudo: unknown user: rrs
rrs rrs rrs
sudo: unable to initialize policy plugin
sudo: unknown user: rrs
rrs rrs rrs
sudo: unable to initialize policy plugin
12:35 ♒♒♒ ☹ 😟=> 1
Whereas the fact is that snapper
is configured proper
rrs@priyasi:/var/tmp/dsnap-sync-0.6.3$ snapper -c homedir list
# | Type | Pre # | Date | User | Cleanup | Description | Userdata
------+--------+-------+---------------------------------+------+----------+---------------------------+--------------------------------------------------------------------------------
0 | single | | | root | | current |
1473 | single | | Tue 01 Jan 2019 09:55:23 AM IST | root | timeline | timeline |
1831 | single | | Fri 01 Feb 2019 10:58:32 AM IST | root | timeline | timeline |
2008 | single | | Mon 18 Feb 2019 08:30:18 AM IST | root | timeline | timeline |
2084 | single | | Mon 25 Feb 2019 10:07:54 AM IST | root | timeline | timeline |
2139 | single | | Fri 01 Mar 2019 09:03:14 AM IST | root | timeline | timeline |
2143 | single | | Mon 04 Mar 2019 01:43:48 PM IST | root | timeline | timeline |
Your debian packaging is broken. When a package is built, it does not include any of the binaries or other files. That is because there is no installation taking place to the target. To overcome this, I simply added the following instruction in the packaging to include the files/directories.
rrs@priyasi:/var/tmp/dsnap-sync-0.6.3$ cat debian/dsnap-sync.install
bin/
etc/
usr/
19:25 ♒♒♒ ☺ 😄
The problem:
rrs@priyasi:/var/tmp/Debian-Build/Result$ dpkg --contents dsnap-sync_0.6.0+nmu1_amd64.deb
drwxr-xr-x root/root 0 2019-03-13 19:30 ./
drwxr-xr-x root/root 0 2019-03-13 19:30 ./usr/
drwxr-xr-x root/root 0 2019-03-13 19:30 ./usr/share/
drwxr-xr-x root/root 0 2019-03-13 19:30 ./usr/share/doc/
drwxr-xr-x root/root 0 2019-03-13 19:30 ./usr/share/doc/dsnap-sync/
-rw-r--r-- root/root 534 2019-03-13 19:30 ./usr/share/doc/dsnap-sync/changelog.gz
19:31 ♒♒♒ ☺ 😄
W: dsnap-sync: empty-binary-package
which, after the above proposed fix, is:
rrs@priyasi:/var/tmp/Debian-Build/Result$ dpkg --contents dsnap-sync_0.6.0+nmu1_amd64.deb
drwxr-xr-x root/root 0 2019-03-13 12:23 ./
drwxr-xr-x root/root 0 2018-10-12 16:01 ./bin/
-rwxr-xr-x root/root 108232 2018-10-12 16:01 ./bin/dsnap-sync
-rwxr-xr-x root/root 67257 2018-10-12 16:01 ./bin/tape-admin
drwxr-xr-x root/root 0 2018-10-12 16:01 ./etc/
drwxr-xr-x root/root 0 2018-10-12 16:01 ./etc/dsnap-sync/
-rw-r--r-- root/root 5918 2018-10-12 16:01 ./etc/dsnap-sync/MediaPools_Test.json
drwxr-xr-x root/root 0 2018-10-12 16:01 ./usr/
drwxr-xr-x root/root 0 2018-10-12 16:01 ./usr/share/
drwxr-xr-x root/root 0 2018-10-12 16:01 ./usr/share/doc/
drwxr-xr-x root/root 0 2019-03-13 12:23 ./usr/share/doc/dsnap-sync/
-rw-r--r-- root/root 3066 2018-10-12 16:01 ./usr/share/doc/dsnap-sync/Examples.md.gz
-rw-r--r-- root/root 537 2019-03-13 12:23 ./usr/share/doc/dsnap-sync/changelog.gz
lrwxrwxrwx root/root 0 2019-03-13 12:23 ./usr/share/doc/dsnap-sync/README.md -> /README.md
lrwxrwxrwx root/root 0 2019-03-13 12:23 ./usr/share/doc/dsnap-sync/TODO.md -> /TODO.md
19:33 ♒♒♒ ☺ 😄
I am using Fedora, and I do not have a dsnap-sync
package available. The README states this can be installed with make install
but there is no Makefile
. This appears to have been deleted in fda862c. I restored Makefile
and find_snapper_config
from that commit and was able to install successfully.
I am not familiar enough with this application to make a suggestion; perhaps at least the README could be updated for folks coming here without deb packages.
Re.
Line 2248 in 79fcb07
there seems to be an alternate solution, cf.
openSUSE/snapper#372 (comment)
openSUSE/snapper#742 (comment)
systemctl restart snapperd.service
Otherwise, targeting stable
, which does it can fail for most non-stable users.
rrs@priyasi:/tmp/dsnap-sync-0.6.3$ pdebuild
dpkg-checkbuilddeps: error: Unmet build dependencies: dh-exec
W: Unmet build-dependency in source
dh clean
dh_clean
rm -f debian/debhelper-build-stamp
rm -rf debian/.debhelper/
rm -f -- debian/dsnap-sync.substvars debian/files
rm -fr -- debian/dsnap-sync/ debian/tmp/
find . \( \( \
\( -path .\*/.git -o -path .\*/.svn -o -path .\*/.bzr -o -path .\*/.hg -o -path .\*/CVS -o -path .\*/.pc -o -path .\*/_darcs \) -prune -o -type f -a \
\( -name '#*#' -o -name '.*~' -o -name '*~' -o -name DEADJOE \
-o -name '*.orig' -o -name '*.rej' -o -name '*.bak' \
-o -name '.*.orig' -o -name .*.rej -o -name '.SUMS' \
-o -name TAGS -o \( -path '*/.deps/*' -a -name '*.P' \) \
\) -exec rm -f {} + \) -o \
\( -type d -a -name autom4te.cache -prune -exec rm -rf {} + \) \)
dpkg-source: warning: no source format specified in debian/source/format, see dpkg-source(1)
dpkg-source: warning: source directory 'dsnap-sync-0.6.3' is not <sourcepackage>-<upstreamversion> 'dsnap-sync-0.6.0'
dpkg-source: info: using source format '1.0'
dpkg-source: info: building dsnap-sync in dsnap-sync_0.6.0.tar.gz
dpkg-source: info: building dsnap-sync in dsnap-sync_0.6.0.dsc
I: Generating source changes file for original dsc
dpkg-genchanges: info: including full source code in upload
ERROR: ld.so: object 'libeatmydata.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
[sudo] password for rrs:
I: pbuilder: network access will be disabled during build
I: Current time: Wed Mar 13 19:28:29 IST 2019
I: pbuilder-time-stamp: 1552485509
I: Building the build Environment
I: extracting base tarball [/var/cache/pbuilder/stretch-amd64-base.tgz]
I: copying local configuration
I: mounting /proc filesystem
I: mounting /sys filesystem
I: creating /{dev,run}/shm
I: mounting /dev/pts filesystem
I: redirecting /dev/ptmx to /dev/pts/ptmx
I: Mounting /var/cache/apt/archives/
I: policy-rc.d already exists
W: Could not create compatibility symlink because /tmp/buildd exists and it is not a directory
I: using eatmydata during job
I: Using pkgname logfile
I: Current time: Wed Mar 13 19:28:35 IST 2019
I: pbuilder-time-stamp: 1552485515
I: Setting up ccache
I: Copying source file
I: copying [../dsnap-sync_0.6.0.dsc]
I: copying [../dsnap-sync_0.6.0.tar.gz]
I: Extracting source
dpkg-source: warning: extracting unsigned source package (dsnap-sync_0.6.0.dsc)
dpkg-source: info: extracting dsnap-sync in dsnap-sync-0.6.0
dpkg-source: info: unpacking dsnap-sync_0.6.0.tar.gz
I: using fakeroot in build.
I: Installing the build-deps
I: user script /tmp/21613/tmp/hooks/D10-man-db starting
I: Preseed man-db/auto-update to false
I: user script /tmp/21613/tmp/hooks/D10-man-db finished
I: user script /tmp/21613/tmp/hooks/D70results starting
No '/var/tmp/Debian-Build/pbuilder-deps/Packages' file found. Regular build. So no local package db update
I: user script /tmp/21613/tmp/hooks/D70results finished
-> Attempting to satisfy build-dependencies
-> Creating pbuilder-satisfydepends-dummy package
Package: pbuilder-satisfydepends-dummy
Version: 0.invalid.0
Architecture: amd64
Maintainer: Debian Pbuilder Team <[email protected]>
Description: Dummy package to satisfy dependencies with aptitude - created by pbuilder
This package was created automatically by pbuilder to satisfy the
build-dependencies of the package being currently built.
Depends: debhelper (>= 10), dh-exec
dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
Selecting previously unselected package pbuilder-satisfydepends-dummy.
(Reading database ... 13163 files and directories currently installed.)
Preparing to unpack .../pbuilder-satisfydepends-dummy.deb ...
Unpacking pbuilder-satisfydepends-dummy (0.invalid.0) ...
dpkg: pbuilder-satisfydepends-dummy: dependency problems, but configuring anyway as you requested:
pbuilder-satisfydepends-dummy depends on debhelper (>= 10); however:
Package debhelper is not installed.
pbuilder-satisfydepends-dummy depends on dh-exec; however:
Package dh-exec is not installed.
Setting up pbuilder-satisfydepends-dummy (0.invalid.0) ...
Reading package lists...
Building dependency tree...
Reading state information...
Initializing package states...
Writing extended state information...
Building tag database...
pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0)
pbuilder-satisfydepends-dummy is already installed at the requested version (0.invalid.0)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
The following packages have unmet dependencies:
pbuilder-satisfydepends-dummy : Depends: debhelper (>= 10) which is a virtual package and is not provided by any available package
Depends: dh-exec which is a virtual package and is not provided by any available package
Unable to resolve dependencies! Giving up...
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Abort.
E: pbuilder-satisfydepends failed.
I: unmounting /var/cache/apt/archives/ filesystem
I: unmounting dev/ptmx filesystem
I: unmounting dev/pts filesystem
I: unmounting dev/shm filesystem
I: unmounting proc filesystem
I: unmounting sys filesystem
I: cleaning the build env
I: removing directory /tmp//21613 and its subdirectories
19:28 ♒♒♒ ☹ 😟=> 1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.