Ahoi,I found the attached scripts anywhere. Edit to your needs and tell how it works!
greets Stefan Am 24.06.20 um 22:05 schrieb Waanie Simon:
Hi allI am working on building a backup solution with bareos. the system will be used to replace arkeia which is no longer supported. Arkeia backups were quite easy to install and monitor but we are.I have install bareos-director and bareos-sd on the same server. They are running on the same network interface.My initial backups went fine but as time went on the backups would queued. Including the catalog backup. I sometime see that the system is asking for a labeling to happen but it doesn't always fix the problem.mostly linux vms and proxmox physical servers.Some of the harder ones to backup is our file server with home volume of 90 TB. This is something that we could never backup and has become a source of many problems.How would you backup such a volume. Should it be split? Since there is a lot of static content in there, should it be archived?I am not sure if config files are is set correctly.I have incremental backups happening daily and differentials happening weekly but I often have full backups happening multiple times during a month.Currently we have no tape library in place so all is running on disk.Thought I could add some code snippets to give an idea of what I have going on hereclient Client { Name = dr001-fd Address = 10.60.100.12 Password = <passwd> } Job Job { Name = dr001-Daily-inc JobDefs = linux-daily-inc Type = backup Messages = Standard Client = dr001-fd } JobDefs { Name = linux-daily-inc Type = Backup Level = Incremental Storage = File Pool = Incremental FileSet = LinuxAll } each job has its own schedule. is this necessary Schedule { Name = dr001-daily-inc Description = Incremental Daily for dr001-fd Run = daily at 11:00 } storage under the bareos-dir.d folder File.conf file Storage { Name = FileAddress = ctbackup.cape.saao.ac.za # N.B. Use a fully qualified name here (do not use "localhost" here).Password = <password> Device = FileStorage Media Type = File Maximum Concurrent Jobs = 5 } The Pools are configured as Pool { Name = Incremental Pool Type = BackupRecycle = yes # Bareos can automatically recycle VolumesAutoPrune = yes # Prune expired volumesVolume Retention = 30 days # How long should the Incremental Backups be kept? (#12) Maximum Volume Bytes = 150G # Limit Volume size to something reasonableMaximum Volumes = 30 # Limit number of Volumes in PoolLabel Format = "Incremental-" # Volumes will be labeled "Incremental-<volume-id>"} Pool { Name = Differential Pool Type = BackupRecycle = yes # Bareos can automatically recycle VolumesAutoPrune = yes # Prune expired volumesVolume Retention = 90 days # How long should the Differential Backups be kept? (#09) Maximum Volume Bytes = 100G # Limit Volume size to something reasonableMaximum Volumes = 60 # Limit number of Volumes in PoolLabel Format = "Differential-" # Volumes will be labeled "Differential-<volume-id>"} Pool { Name = Full Pool Type = BackupRecycle = yes # Bareos can automatically recycle VolumesAutoPrune = yes # Prune expired volumesVolume Retention = 365 days # How long should the Full Backups be kept? (#06) Maximum Volume Bytes = 350G # Limit Volume size to something reasonableMaximum Volumes = 100 # Limit number of Volumes in PoolLabel Format = "Full-" # Volumes will be labeled "Full-<volume-id>"}unfortunately there has been a bit of a thumb suck regarding the numbers here.The storage config looks like this Devices Device { Name = FileStorage Media Type = File Archive Device = /data1/bareos/FileStorage LabelMedia = yes; # lets Bareos label unlabeled media Random Access = yes; AutomaticMount = yes; # when device opened, read it RemovableMedia = no; Collect Statistics = yes AlwaysOpen = no;Description = "File device. A connecting Director must have the same Name and MediaType."} bareos-sd.conf Storage { Name = bareos-sd Maximum Concurrent Jobs = 20# remove comment from "Plugin Directory" to load plugins from specified directory. # if "Plugin Names" is defined, only the specified plugins will be loaded,# otherwise all storage plugins (*-sd.so) from the "Plugin Directory". # # Plugin Directory = "/usr/lib/bareos/plugins" # Plugin Names = "" Collect Device Statistics = yes Collect Job Statistics = yes #Statistics Collect Intevals = 60 } ~I know that my largest backups will probably not work since my capacity I can write to is only about 70 TbI have the web gui working but there is no easy way to see progress on a job.Any improvements would be appreciated Regards Waanie ~ --You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/c8c2054a-3d75-4bad-9a97-f2674e08c4b0o%40googlegroups.com <https://groups.google.com/d/msgid/bareos-users/c8c2054a-3d75-4bad-9a97-f2674e08c4b0o%40googlegroups.com?utm_medium=email&utm_source=footer>.
-- You received this message because you are subscribed to the Google Groups "bareos-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/6e7b1946-efe2-908d-1fb5-12a1038c3da3%40fuhrmann.homedns.org.
1-prune-all-volumes-Full.sh
Description: application/shellscript
2-prune-all-volumes-Incr.sh
Description: application/shellscript
3-prune-all-volumes-Diff.sh
Description: application/shellscript
4-delete-purged-volumes.sh
Description: application/shellscript
5-prune-all-volumesInError-Incr.sh
Description: application/shellscript
6-delete-InError-volumes.sh
Description: application/shellscript
crontabs mit den scripten 1-4: 00 05 * * * /root/1-prune-all-volumes-Full.sh 05 05 * * * /root/2-prune-all-volumes-Incr.sh 10 05 * * * /root/3-prune-all-volumes-Diff.sh 15 05 * * * /root/4-delete-purged-volumes.sh die anderen bei Bedarf
