Last active
August 22, 2023 22:11
-
-
Save Signifies/8da53db394fa610d21896047a402d0f6 to your computer and use it in GitHub Desktop.
Backup script for parrotos. Will commit updates later.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "Starting file system backup." | |
cd | |
cd Desktop | |
if [! -d "$backups" ]; | |
then mkdir "$backups" ; | |
# Not sure if I did this correctly. Will test tomorrow... | |
tar -cvpzf parrotos-backup.tar.gz --exclude=/parrotos-backup.tar.gz \ --exclude=/proc \ --exclude=/tmp \ --exclude=/mnt \ --exclude=/dev \ --exclude=/sys \ --exclude=/run \ --exclude=/media \ --exclude=/var/cache/apt/archives \ --exclude=/usr/src/linux-headers* \ --exclude=/home/*/.gvfs \ --exclude=/home/*/.cache / | |
fi | |
echo "completed..." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
References
Article on Linux file system backups