Skip to content

Instantly share code, notes, and snippets.

@xavieryin
Created August 3, 2020 07:33
Show Gist options
  • Save xavieryin/7764861686bc8294cc3e5ef015aaeb94 to your computer and use it in GitHub Desktop.
Save xavieryin/7764861686bc8294cc3e5ef015aaeb94 to your computer and use it in GitHub Desktop.
tar with symbolic links preserved
```
# tar -cvhf archive.tar /backupfolder
```
Ref:
1. https://linoxide.com/how-tos/how-to-preserve-symbolic-links-in-tar-command/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment