Hiii,
Ich habe Zweifel, hier --
Zitat:
DirCleanupList \u003d "Protokolle corefiles tmp"
echo "$ DirCleanupList" | perl -ne 'print join ( "\ n", split ( "")). "\ n"; "
für dir in $ DirCleanupList
tun
BackupLocation \u003d "$ BackupLocation / $ dir"
mkdir-p $ BackupLocation> / dev / null 2> & 1
if [[! -d $ BackupLocation]], dann
echo "nicht in der Lage, Backup-Verzeichnis: $ BackupLocation"
weiter
fi
getan
|
Ich habe, um die Sicherung aller Dateien in Verzeichnis R. (Protokolle, tmp, corefiles) am Standort $ BackupLocation.i sollten die Backup-Protokolle, tmp, corefiles im $ BackupLocation Verzeichnis und entfernen Sie die Dateien und berühren Sie die Dateien im Verzeichnis dir (Protokolle, tmp, corefiles).
sonst können wir die Dateien aus R. (Protokolle, corefiles, tmp) bis zu $ BackupLocation und berühren Sie dann die Datei innerhalb R. (Protokolle, tmp, corefiles).
i appericicate Ihre schnelle Hilfe.