Skip to content

Instantly share code, notes, and snippets.

@Signifies
Last active August 22, 2023 22:11
Show Gist options
  • Save Signifies/8da53db394fa610d21896047a402d0f6 to your computer and use it in GitHub Desktop.
Save Signifies/8da53db394fa610d21896047a402d0f6 to your computer and use it in GitHub Desktop.
Backup script for parrotos. Will commit updates later.
#!/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..."
@Signifies
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment