- #!/bin/bash
- # Set backup location here
- bak=$1
- timestamp=$(date +%F_%T%z)
- # Make a timestamped directory there.
- mkdir -v "$bak"homeprofile_backup_"$timestamp"
- # Make what has been bade by mkdir and put that into a variable.
- "$bak"homeprofile_backup_"$timestamp"=timedir
- # For this, blaah.txt has to exist in your directory, that one is supposed to get copied over.
- rsync -avp --partial --progress --human-readable blaah.txt "$timedir"
Untitled
Posted by Anonymous on Mon 2nd Mar 2015 23:19
raw | new post
modification of post by Anonymous (view diff)
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.