Backupscript der Config

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Backupscript der Config

      Hallo,

      hier ein Backupscript gefunden was sicherlich einige Nutzen können.
      Das ganze in ein Shell Script packen chmod 755 und ausführen danach Backupfile einfach per WinSCP weg kopieren. :)

      Quellcode

      1. #! /bin/sh
      2. # --settings: includes all settings files
      3. # uses '/home/httpd/html/backup/include.system' listing, but excludes
      4. # database dumps listed in '/home/httpd/html/backup/include.dumps'
      5. # --logs: includes all log files within backups.
      6. # uses '/home/httpd/html/backup/include.logs' listing, but excludes log
      7. # archives listed in '/home/httpd/html/backup/include.logarchives'
      8. # --logarchives: includes also (does not exclude) log archives, listed
      9. # in '/home/httpd/html/backup/include.logarchives'
      10. # --dbdumps: includes (does not exclude) database dumps listed in
      11. # '/home/httpd/html/backup/include.dumps'
      12. # --cron: signalizes that the backup has been created by a cronsscript
      13. # --factory: creates factory defaults backup which includes only settings
      14. # --message: puts a message within meta data file
      15. # --gpgkey: encrypt the backup with the supplied gpg key
      16. #message to store in meta file
      17. MSG="Weekly Backup"
      18. #number of backups to keep
      19. DATE="`date --date='2 week ago' +%Y%m%d`"
      20. #path to backups
      21. BACKUPDIR="/home/httpd/html/backup/"
      22. #create backups
      23. /usr/local/bin/backup-create --settings --logs --logarchives --dbdumps --cron --message="$MSG"
      24. #delete backups
      25. rm -rf $BACKUPDIR\backup-$DATE*
      Alles anzeigen

      freaky-media
      Kein Support per PN dafür ist das Forum da.
      Preisanfragen via PN möglich oder über freaky-media