Difference between
modified post 5cc3e13ed by Anonymous on Mon 2nd Mar 2015 22:50
original post edf by Anonymous on Mon 2nd Mar 2015 21:49
Download diff
Show
old version |
new version |
both versions
| 1 | 1 | #!/bin/bash | |
| 2 | 2 | ||
| 3 | 3 | ||
| 4 | 4 | # Usage: bash backup.sh /path/to/target/ | |
| 5 | 5 | # alias sy='rsync -avp --partial --progress --human-readable' | |
| 6 | 6 | ||
| 7 | 7 | # Set backup location here | |
| 8 | - | bak=$1 | |
| 8 | + | bak=$1/homeprofile_backup_$(date +%F_%T%z) | |
| 9 | 9 | ||
| 10 | 10 | # Make a timestamped directory there. | |
| 11 | - | mkdir -v "$bak"/homeprofile_backup_$(date +%F_%T%z) | |
| 11 | + | mkdir -v "$bak" | |
| 12 | 12 | ||
| 13 | 13 | # Backup the Chromium profile. | |
| 14 | 14 | sy -R ~/.config/chromium "$bak" | |
| 15 | 15 |
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.
script.kpaste.net RSS