TARSNAP Commands Cheat Sheet

Here is a cli commands cheat sheet for TARSNAP command, you can use this as a quick reminder for basic commands with a brief description for each of the commands.

What is TARSNAP command?

Add some data here

        ---
tags: [ compression ]
---
# Perform a backup of two directories
tarsnap -c -f  /usr/home /other/stuff/to/backup

# Print how much data would be uploaded
tarsnap -c -f  --dry-run --print-stats 

# Copy an archive (only accesses metadata)
tarsnap -c -f  @@

# List the archives
tarsnap --list-archives

# Delete an archive
tarsnap -d -f 

# List the files in an archive
tarsnap -tv -f 

# Restore two users' home directories from an archive (use no leading slashes)
tarsnap -x -f  usr/home/alice usr/home/bob
    

Check out the TARSNAP command documentation .


You can also check our MegaSh cheatsheet tool, that has 150+ searchable linux cheat sheets in one page, so you never forget a command as you work again

Check Also

Best AI tools list