question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for GNU tar incremental backups

See original GitHub issue

See discussion here. Not showing a merged view of the snapshots is one thing but I even have input/output errors when trying to descend into such a snapshot “folder”. That should not happen. Those snapshots would map surprisingly well to the FileVersionLayer! Except of course that they have different numbers. What even is that number? It does not seem to be a Unix time stamp?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:26 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
mxmlnkncommented, Oct 19, 2021

now if i want to make an incremental backup i run this?: sudo tar -cvvp --listed-incremental=/media/dacorsa/HDext2TB/Backup-NanoKDE/backup-nvme0n1.snar --file=/media/dacorsa/HDext2TB/Backup-NanoKDE/backup-nvme0n12.tar --one-file-system --exclude={/backup-.tar,/dev/,/proc/,/sys/,/tmp/,/run/,/mnt/,/media/,/lost+found,/home//.cache,/home//.gvfs,/home//.local/share/Trash,/usr/src/linux-headers,/var/cache/apt/archives,/var/log} /

with this file name? backup-nvme0n12.tar

As far as I understood it, this is the usual workflow:

mkdir incremental-tests && cd "$_"

# Create data to back up
mkdir foo
echo hi > foo/bar

# Do a full backup (with support for an incremental backup at a later time)
tar --listed-incremental=backup.01.snar -c -f backup.01.tar foo

# Add new data to store in the incremental backup
echo world > foo/par

# Do the incremental backup
cp backup.01.snar backup.02.snar
tar --listed-incremental=backup.02.snar -c -f backup.02.tar foo

# backup.01.tar is now a full backup which contains foo/bar
# and the incremental backup backup.02.tar will only contain foo/par
tar tvvlf backup.02.tar

And in order to mount the latest state with ratarmount, you can make use of the union merge feature by simply specifying both archives:

ratarmount --gnu-incremental backup.01.tar backup.02.tar mountpoint

ok telegram

The link above and on the main page is an invite link: https://t.me/joinchat/FUdXxkXIv6c4Ib8bgaSxNg

1reaction
dacorsacommented, Oct 19, 2021

perfect Max! :

ratarmount -o allow_other --gnu-incremental /media/dacorsa/HDext2TB/Backup-NanoKDE/backup-sda1.tar /mnt/backup/

immagine

Read more comments on GitHub >

github_iconTop Results From Across the Web

5.2 Using tar to Perform Incremental Dumps - GNU.org
GNU tar currently offers two options for handling incremental backups: ' --listed-incremental= snapshot-file ' (' -g snapshot-file ') and ' --incremental ' ('...
Read more >
How to perform tar incremental backup with example in Linux
How tar incremental backup is performed · Step 1: Create some data · Step 2: Take level 0 incremental backup · Step 3:...
Read more >
Performing Incremental backups using tar - Unixmen
Performing Incremental backups using tar. We are all much familiar with “tar” command on linux. We mostly use it for archiving some files...
Read more >
Can GNU tar incremental backup use checksums?
As far as I know, any version of tar I'm aware of supports checksums only within the structure of the .tar archive; they...
Read more >
How to do encrypted incremental backups and snapshots with ...
When you do incremental backups with GNU Tar you use a meta data file, or a snapshot file, that you need to store...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found