Changeset 115 for bin/backup.sh


Ignore:
Timestamp:
Nov 28, 2008, 9:20:58 AM (16 years ago)
Author:
george
Message:
  • Upraveno: Různé systémové shellové skripty.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • bin/backup.sh

    r1 r115  
    33date
    44# Pripoj disk
    5 mount /dev/hdc1 /mnt/backup
     5#mount /dev/hdc1 /mnt/backup
    66# Zruseni zalohy v tempu
    77# Aktivuj skript
     
    1313# Komprese slozky
    1414echo Kompresuji...
    15 tar -c -z backup >/mnt/backup/backup.tgz
     15tar -c -z backup >/a/backup/system/backup_$(date +"%Y-%m-%d").tgz
    1616rm -r /tmp/backup
    1717# Odpoj disk
    18 umount /mnt/backup
     18#umount /mnt/backup
    1919# Prepnout disk do usporneho rezimu
    20 hdparm -Y /dev/hdc
     20#hdparm -Y /dev/hdc
    2121echo Done
Note: See TracChangeset for help on using the changeset viewer.