Advertisement
Guest User

Untitled

a guest
Jan 6th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. # Config File
  2.  
  3. # The automatic backup system.
  4. # Players with permission PerfectBackup.warning will be warned on automatic backup.
  5. # interval: 2 h
  6.  
  7. # Interval format:
  8. # <amount> <t/s/m/h/d>
  9. # t = Ticks, s = Seconds, m = Minutes, h = Hours, d = Days
  10.  
  11. crontask: '0 0 4 * * *' # This would make it every day at 4 AM
  12.  
  13. # CronTask format:
  14. # * * * * * *
  15. # | | | | | |
  16. # | | | | | +–––– Day of the Week (1-7)
  17. # | | | | +–––––– Month (1-12)
  18. # | | | +–––––––– Day of the Month (1-31)
  19. # | | +–––––––––– Hour (0-23)
  20. # | +–––––––––––– Minute (0-59)
  21. # +–––––––––––––– Second (0-59)
  22.  
  23. # A few more examples...
  24. # crontask: '0 0 * * * *' This would make it every hour
  25. # crontask: '0 0 4 * * 7' This would make it every sunday at 4 AM
  26. # crontask: '0 0 4 1 * *' This would make it every first of the month at 4 AM
  27.  
  28. # The format for backup names.
  29. # If two backups have the same name, it will append " (1)", " (2)" etc.
  30. backupformat: 'PerfectBackup {DATE}'
  31.  
  32. # The format for dates.
  33. # MM = month, DD = Day, YYYY = Year, HH = 12h Hours, hh = 24h Hours, mm = Minutes, ss = Seconds, ms = Milliseconds, AM = AM/PM
  34. dateformat: 'MM-DD-YYYY hhh mmm sss' # e.g. 03-10-2016 11h 47m 24s
  35.  
  36. # Whether the backups should be in a zip file or in a folder.
  37. zipbackups: true
  38.  
  39. # The folder where to store the backups locally.
  40. localpath: 'plugins/PerfectBackup/backups'
  41.  
  42. # The maximum backups stored. Will delete older backups when reached. (≤ 0 to disable)
  43. # Note: this will only work with local backups (fallbacks included).
  44. maxbackups: -1
  45.  
  46. # Whether or not the plugin should broadcast when automatic backups start/end.
  47. # If this is set to false, only players with the PerfectBackup.warning permission will see it.
  48. broadcast: false
  49.  
  50. # Whether or not the plugin should broadcast when manual backups start/end.
  51. # If this is set to false, only players with the PerfectBackup.warning permission will see it.
  52. manualbroadcast: true
  53.  
  54. # Whether or not you should see detailed information while creating a backup.
  55. debug: false
  56.  
  57. # Whether or not the server should be restarted when a backup is restored.
  58. # This will run the command line "cd dirname" and "java -server -jar jarfile"
  59. # dirname being the directory to the server and jarfile the first .JAR file found in the server directory
  60. restorerestart: true
  61.  
  62. # FTP settings and configuration.
  63. # Different modes (when to use FTP):
  64. # - NEVER (disable)
  65. # - FALLBACK (when an error occurs)
  66. # - LIMIT (move files when maxbackups is reached)
  67. # - FIRST (use ftp unless an error occurs)
  68. # - ALWAYS (only save to ftp, never use local)
  69. # - BOTH (save to both ftp and local)
  70. ftp:
  71. mode: NEVER
  72. host: 'localhost'
  73. port: 21
  74. user: 'PerfectUser'
  75. pass: 'P3rf3c7P455w0rd'
  76. path: '~/PerfectBackups/'
  77.  
  78. # What you want in the backup.
  79. backup:
  80. jarfile: false # The .jar file of your server (e.g. craftbukkit.jar)
  81. properties: true # The server.properties file
  82. ops: true # The ops.json file
  83. whitelist: false # The whitelist.json file
  84. spigotyml: true # If on spigot, the spigot.yml file
  85. bukkityml: true # The bukkit.yml file
  86. aliases: false # The commands.yml file
  87. eula: false # The eula.txt file
  88. metrics: false # The PluginMetrics folder
  89. logs: false # The logs folder, with all the zips (WARNING! This can make your backups way slower and very heavy!)
  90. pluginjars: true # The .jar files for the plugins
  91. pluginconfs: true # The data folder of each plugin
  92. worlds: # Use [] for no world, and - '*' for all the worlds.
  93. - 'world'
  94. - 'world_nether'
  95. - 'world_the_end'
  96. other: # Any other file you want to backup, using "!" before will prevent it from backupping (IMPORTANT! Use / for directories!)
  97. - 'plugins/PluginMetrics'
  98. - '!plugins/Essentials'
  99. - '!plugins/WorldEdit'
  100. - '!plugins/PerfectBackup/backups'
  101. In this config (it's the default one), we can see:
  102.  
  103. Interval
  104. This is the time between each automatic backup.
  105. It must have the format number + space + unit.
  106. The available units are t (ticks), s (seconds), m (minutes), h (hours) and d (days).
  107. If you put an invalid value (e.g. none, or leaving it empty), it will disable automatic backups.
  108. Default is "2 h" (2 hours).
  109.  
  110. Cron Task
  111. Here are the 6 cron task components:
  112. 1/ Second (0-59)
  113. 2/ Minute (0-59)
  114. 3/ Hour (0-23)
  115. 4/ Day of the Month (1-31)
  116. 5/ Month (1-12)
  117. 6/ Day of the Week (1-7)
  118. Default is "0 0 4 * * *" (every day at 4 AM).
  119. You could also use for example:
  120. crontask: '0 0 * * * *' (This would make it every hour)
  121. crontask: '0 0 4 * * 7' (This would make it every sunday at 4 AM)
  122. crontask: '0 0 4 1 * *' (This would make it every first of the month at 4 AM)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement