NextcloudBackupRestore.conf.j2 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Configuration for Nextcloud-Backup-Restore scripts
  2. # TODO: The main backup directory
  3. backupMainDir='/backup/nextcloud'
  4. # TODO: Use compression for file/data dir
  5. # When this is the only script for backups, it is recommend to enable compression.
  6. # If the output of this script is used in another (compressing) backup (e.g. borg backup),
  7. # you should probably disable compression here and only enable compression of your main backup script.
  8. useCompression=true
  9. # TOOD: The bare tar command for using compression while backup.
  10. # Use 'tar -cpzf' if you want to use gzip compression.
  11. compressionCommand='tar -I pigz -cpf'
  12. # TOOD: The bare tar command for using compression while restoring.
  13. # Use 'tar -xmpzf' if you want to use gzip compression.
  14. extractCommand='tar -I pigz -xmpf'
  15. # TODO: File names for backup files
  16. fileNameBackupFileDir='nextcloud-filedir.tar.gz'
  17. fileNameBackupDataDir='nextcloud-datadir.tar.gz'
  18. fileNameBackupExternalDataDir=''
  19. fileNameBackupDb='nextcloud-db.sql'
  20. # TODO: The directory of your Nextcloud installation (this is a directory under your web root)
  21. nextcloudFileDir='/var/www/html/nextcloud'
  22. # TODO: The directory of your Nextcloud data directory (outside the Nextcloud file directory)
  23. # If your data directory is located under Nextcloud's file directory (somewhere in the web root),
  24. # the data directory should not be a separate part of the backup
  25. nextcloudDataDir='/srv/data'
  26. # TODO: The directory of your Nextcloud's local external storage.
  27. # Uncomment if you use local external storage.
  28. #nextcloudLocalExternalDataDir='/var/nextcloud_external_data'
  29. # TODO: The service name of the web server. Used to start/stop web server (e.g. 'systemctl start <webserverServiceName>')
  30. webserverServiceName='httpd'
  31. # TODO: Your web server user
  32. webserverUser='apache'
  33. # TODO: The name of the database system (one of: mysql, mariadb, postgresql)
  34. databaseSystem='mysql'
  35. # TODO: Your Nextcloud database name
  36. nextcloudDatabase='nextcloudb'
  37. # TODO: Your Nextcloud database user
  38. dbUser='nextcloudb'
  39. # TODO: The password of the Nextcloud database user
  40. dbPassword='secret'
  41. # TODO: The maximum number of backups to keep (when set to 0, all backups are kept)
  42. maxNrOfBackups=10
  43. # TODO: Setting to include/exclude the backup directory of the Nextcloud updater
  44. # Set to true in order to include the backups of the Nextcloud updater
  45. includeUpdaterBackups=false