Changeset 115 for bin/backup.sh
- Timestamp:
- Nov 28, 2008, 9:20:58 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
bin/backup.sh
r1 r115 3 3 date 4 4 # Pripoj disk 5 mount /dev/hdc1 /mnt/backup5 #mount /dev/hdc1 /mnt/backup 6 6 # Zruseni zalohy v tempu 7 7 # Aktivuj skript … … 13 13 # Komprese slozky 14 14 echo Kompresuji... 15 tar -c -z backup >/ mnt/backup/backup.tgz15 tar -c -z backup >/a/backup/system/backup_$(date +"%Y-%m-%d").tgz 16 16 rm -r /tmp/backup 17 17 # Odpoj disk 18 umount /mnt/backup18 #umount /mnt/backup 19 19 # Prepnout disk do usporneho rezimu 20 hdparm -Y /dev/hdc20 #hdparm -Y /dev/hdc 21 21 echo Done
Note:
See TracChangeset
for help on using the changeset viewer.