Skip to content

Instantly share code, notes, and snippets.

@Anon-Exploiter
Last active June 16, 2020 14:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Anon-Exploiter/c97c1c45167a3ac4f6e24030088290bd to your computer and use it in GitHub Desktop.
Save Anon-Exploiter/c97c1c45167a3ac4f6e24030088290bd to your computer and use it in GitHub Desktop.
Taking regular backups of OSCP/OSWE data
#!/bin/bash
archiveName=OSWE-`date +%d_%m_%Y`.tar.gz
cd /home/$USER/
# Cronjob:
# 00 15 * * * /path/cronjob.sh | tee /tmp/cronLogs.txt
tar -czvf $archiveName OSWE/
mv $archiveName /path/ -v
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment