Re: [bareos-users] Pruning oldest volume "server-0728"

2020-08-03 Thread Goncalo Sousa
Today happened the same thing.

"bareos-dir JobId 5426: Pruning oldest volume "srvtsprdintra01-0747"

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/1cbba5bd-cd60-4450-ae0f-b009cfaf93a5o%40googlegroups.com.


Re: [bareos-users] Pruning oldest volume "server-0728"

2020-07-31 Thread Goncalo Sousa
On these last 2 days it backuped successfully, strange

These are all the files related to the client:

[root@bareos-server bareos]# cat 
/etc/bareos/bareos-dir.d/client/windows-server-fd.conf
Client {
  Name = windows-server-fd
  Address = windows-server
  Password = "password"
  # uncomment the following if using bacula
  # Catalog = "MyCatalog"
  }
[root@bareos-server bareos]# cat 
/etc/bareos/bareos-dir.d/fileset/windows-server-fs.conf
FileSet {
  Name = "windows-server-fs"
Enable VSS = yes
  Include {
Options {
  Compression=GZIP
  Signature = MD5
  Drive Type = fixed
  IgnoreCase = yes
  WildFile = "[A-Z]:/pagefile.sys"
  WildDir = "[A-Z]:/RECYCLER"
  WildDir = "[A-Z]:/$RECYCLE.BIN"
  WildDir = "[A-Z]:/System Volume Information"
  WildDir = "[A-Z]:/Users"
Exclude = yes
}
File ="E:/"
}
}

[root@bareos-server bareos]# cat 
/etc/bareos/bareos-dir.d/job/windows-server-job.conf
Job {
  Name = windows-server-job
  Client = windows-server-fd
  Type = Backup
  Level = Incremental
  Fileset = "windows-server-fs"
  Schedule = "schedule"
  Storage = windows-server-sd
  Messages = Standard
  Pool = pool-srvtsprdintra
  Priority = 1
  Write Bootstrap = "/var/lib/bareos/%c.bsr"
}

[root@bareos-server bareos]# cat 
/etc/bareos/bareos-dir.d/pool/pool-windows-server.conf
Pool {
  Name = pool-srvtsprdintra
  Pool Type = Backup
  Recycle = yes   # Bareos can automatically recycle 
Volumes
  Recycle Oldest Volume = yes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 30 days # How long should the Full Backups be 
kept? (#06)
  Maximum Volume Bytes = 25G  # Limit Volume size to something 
reasonable
  Maximum Volumes = 100   # Limit number of Volumes in Pool
  Label Format = "windows-server-"  # Volumes will be labeled 
"Full-"
}

[root@bareos-server bareos]# cat 
/etc/bareos/bareos-dir.d/storage/windows-server-sd.conf
Storage {
  Name = windows-server-sd
  Address = bareos-server# N.B. Use a fully qualified name 
here (do not use "localhost" here).
  Password = "password"
  Device = windows-server-sd
  Media Type = File
}
[root@bareos-server bareos]# cat 
/etc/bareos/tray-monitor.d/client/windows-server-mon.conf
Monitor {
  # Name to establish connections to Director Console, Storage Daemon and 
File Daemon.
  Name = windows-server-mon
  # Password to access the Director
  Password = "password" # password for the Directors
  RefreshInterval = 30 seconds
}


[root@bareos-server bareos]# cat 
/etc/bareos/bareos-sd.d/device/windows-server-sd.conf
Device {
  Name =windows-server-sd
  Media Type = File
  Archive Device = /tsbackcrit/windows-server-sd
  LabelMedia = yes;   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Description = "File device. A connecting Director must have the same Name 
and MediaType."
}

quinta-feira, 30 de Julho de 2020 às 08:10:25 UTC+1, j.echter escreveu:
>
> also please post your config files: pool, job and so on
> Am 29.07.20 um 12:48 schrieb Goncalo Sousa:
>
> The retention is only 30 days
>
> quarta-feira, 29 de Julho de 2020 às 07:55:23 UTC+1, j.echter escreveu: 
>>
>>
>> Am 28.07.20 um 18:23 schrieb Goncalo Sousa:
>>
>> Hello,
>>
>> My BareOS is trying to backup a windows server and it only gives me 
>> "Pruning oldest volume "server-0728" (159 rows of this to be precise). The 
>> job starts at 11PM and I cancelled it at 11AM.
>>
>> The jobs worked about 3 weeks ago, now it's constantly happening. I've 
>> tried to restart the agent on the Windows side and stays the same and I've 
>> tried to prune via bconsole and gives me another volume to prune in the 
>> next job, staying the same.
>>
>> What can be the cause of this?
>> -- 
>> 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 bareos...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bareos-users/c1830989-8855-4cd4-ace4-78f366dca6a6o%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/bareos-users/c1830989-8855-4cd4-ace4-78f366dca6a6o%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> Hi,
>>
>> maybe you have the volume retention set to a higher value so the volume 
>> will not be fr

Re: [bareos-users] Pruning oldest volume "server-0728"

2020-07-29 Thread Goncalo Sousa
The retention is only 30 days

quarta-feira, 29 de Julho de 2020 às 07:55:23 UTC+1, j.echter escreveu:
>
>
> Am 28.07.20 um 18:23 schrieb Goncalo Sousa:
>
> Hello,
>
> My BareOS is trying to backup a windows server and it only gives me 
> "Pruning oldest volume "server-0728" (159 rows of this to be precise). The 
> job starts at 11PM and I cancelled it at 11AM.
>
> The jobs worked about 3 weeks ago, now it's constantly happening. I've 
> tried to restart the agent on the Windows side and stays the same and I've 
> tried to prune via bconsole and gives me another volume to prune in the 
> next job, staying the same.
>
> What can be the cause of this?
> -- 
> 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 bareos...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bareos-users/c1830989-8855-4cd4-ace4-78f366dca6a6o%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/bareos-users/c1830989-8855-4cd4-ace4-78f366dca6a6o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> Hi,
>
> maybe you have the volume retention set to a higher value so the volume 
> will not be free to get recycled. Only then it will be re-used.
>
> Greetings
>
> Juergen
>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/215e1cf9-a499-40f9-bcfb-bfe90a3939b5o%40googlegroups.com.


[bareos-users] Pruning oldest volume "server-0728"

2020-07-28 Thread Goncalo Sousa
Hello,

My BareOS is trying to backup a windows server and it only gives me 
"Pruning oldest volume "server-0728" (159 rows of this to be precise). The 
job starts at 11PM and I cancelled it at 11AM.

The jobs worked about 3 weeks ago, now it's constantly happening. I've 
tried to restart the agent on the Windows side and stays the same and I've 
tried to prune via bconsole and gives me another volume to prune in the 
next job, staying the same.

What can be the cause of this?

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/c1830989-8855-4cd4-ace4-78f366dca6a6o%40googlegroups.com.


[bareos-users] Email errors

2020-05-12 Thread Goncalo Sousa
Hello, 

Since friday my bareos stopped sending emails (it sends reporting that it 
wasn't send).

By troubleshooting I noticed the sender address is a bit awkward - 
bar...@srvtsprdbos.domain.com

I havent done anything in bareos in last week that could do this error or 
something like that


Here is the output of the files that are in bareos-dir.d/messages


Standard.conf:
Messages {
  Name = Standard
  Description = "Reasonable message delivery -- send most everything to 
email address and to the console."
  operatorcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" 
-s \"Bareos: Intervention needed for %j\" %r"
  mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s 
\"Bareos: %t %e of %c %l\" %r"
  operator = root@localhost = mount # (#03)
  mail =gro...@domain.pt = all, !skipped, !saved, !audit # (#02)
  mail =gro...@domain.pt = all, !skipped, !saved, !audit # (#02)
  Mail On Error =windows-...@domain.pt = all, !skipped, !terminate , !error 
, !warning , !fatal # (#02)
  console = all, !skipped, !saved, !audit
  append = "/var/log/bareos/bareos.log" = all, !skipped, !saved, !audit
  catalog = all, !skipped, !saved, !audit
}

Daemon.conf:
Messages {
  Name = Daemon
  Description = "Message delivery for daemon messages (no job)."
  mailcommand = "/usr/bin/bsmtp -h localhost -f \"\(Bareos\) \<%r\>\" -s 
\"Bareos daemon message\" %r"
  mail = root@localhost = all, !skipped, !audit # (#02)
  console = all, !skipped, !saved, !audit
  append = "/var/log/bareos/bareos.log" = all, !skipped, !audit
  append = "/var/log/bareos/bareos-audit.log" = audit
}

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/2a30a716-65c1-4b2c-9efd-34e7d6294757%40googlegroups.com.


[bareos-users] Re: How to update from 17.2 to 18.2

2020-04-28 Thread Goncalo Sousa
yum history rollback [id] doesn't do the job?

terça-feira, 28 de Abril de 2020 às 13:12:40 UTC+1, Oleg Volkov escreveu:
>
> No, I am talking about rollback, reverting back to previous version.
> Upgrading of production server suggest that you have any roll back plan.
> Anyway it is your choice, not mine.
>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/34303ce5-505a-4f9c-b531-f9262b169689%40googlegroups.com.


[bareos-users] Re: How to update from 17.2 to 18.2

2020-04-28 Thread Goncalo Sousa
When I upgrade will I loose my history?

terça-feira, 28 de Abril de 2020 às 07:29:46 UTC+1, Oleg Volkov escreveu:
>
> I found the safety way was to set up new server and move clients to it. 
> The fail back was much easy, without loosing backup history.
>
>
> On Monday, April 27, 2020 at 5:05:45 PM UTC+3, Goncalo Sousa wrote:
>>
>> I have read 
>> https://docs.bareos.org/IntroductionAndTutorial/UpdatingBareos.html but 
>> it doesnt specify the order or how to only the database.
>>
>> How do I upgrade it?
>>
>> The server is CentOS Linux release 7.5. This means I have to upgrade the 
>> Clients FD's too or are they compatible?
>>
>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/2239c6b3-7df3-4070-b20a-e8b25c0f89b0%40googlegroups.com.


Re: [bareos-users] How to update from 17.2 to 18.2

2020-04-27 Thread Goncalo Sousa
So I just need to update repo and yum update bareos and run

su postgres -c /usr/lib/bareos/scripts/update_bareos_tablessu postgres -c 
/usr/lib/bareos/scripts/grant_bareos_privileges


and restart on server the bareos service? The Clients stay with version 
17.2 and to new clients will have to do with 18.02 right?


segunda-feira, 27 de Abril de 2020 às 16:58:08 UTC+1, Brock Palen escreveu:
>
> If you installed form packages update your repo to point to the newer 
> version.  Eg. follow the install documentation.  Your package managers 
> should auto find the newer version mark the components for upgrade.  It 
> will auto run the scripts to update your database schema.   If it doesn’t 
> you can find the scripts in the install location an edit/run them manually. 
> Generally you will not need to do this. 
>
> Then restart the services and that’s it. 
>
> As for checking version, use your package manager or use from the bconsole 
>
> status director 
> status storage=<…> 
> status client=<…> 
>
> If you leave off the =clientname  it will prompt you to pick from a list. 
>
>
> Brock Palen 
> 1 (989) 277-6075 
> bro...@mlds-networks.com  
> www.mlds-networks.com 
> Websites, Linux, Hosting, Joomla, Consulting 
>
>
>
> > On Apr 27, 2020, at 11:52 AM, Goncalo Sousa  > wrote: 
> > 
> > How can I check the versions? 
> > 
> > How can I upgrade bareos? 
> > 
> > segunda-feira, 27 de Abril de 2020 às 16:45:42 UTC+1, Brock Palen 
> escreveu: 
> > Generally older FD will work with newer SD and DIR.  But do make sure 
> your SD and DIR are the same version.  Save a lot of headaches. 
> > 
> > That said if you can update the FD I would for fixes. 
> > 
> > Brock Palen 
> > 1 (989) 277-6075 
> > bro...@mlds-networks.com 
> > www.mlds-networks.com 
> > Websites, Linux, Hosting, Joomla, Consulting 
> > 
> > 
> > 
> > > On Apr 27, 2020, at 10:05 AM, Goncalo Sousa  
> wrote: 
> > > 
> > > I have read 
> https://docs.bareos.org/IntroductionAndTutorial/UpdatingBareos.html but 
> it doesnt specify the order or how to only the database. 
> > > 
> > > How do I upgrade it? 
> > > 
> > > The server is CentOS Linux release 7.5. This means I have to upgrade 
> the Clients FD's too or are they compatible? 
> > > 
> > > -- 
> > > 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 bareos...@googlegroups.com. 
> > > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bareos-users/d3f8f977-3fc8-44f7-b458-8ea68a0d8652%40googlegroups.com.
>  
>
> > 
> > 
> > -- 
> > 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 bareos...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bareos-users/8767d51e-a61a-429f-a033-7e2be528fc63%40googlegroups.com.
>  
>
>
>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/6fd634a0-90d0-427d-b9d0-3bd7061351a0%40googlegroups.com.


Re: [bareos-users] How to update from 17.2 to 18.2

2020-04-27 Thread Goncalo Sousa
How can I check the versions?

How can I upgrade bareos?

segunda-feira, 27 de Abril de 2020 às 16:45:42 UTC+1, Brock Palen escreveu:
>
> Generally older FD will work with newer SD and DIR.  But do make sure your 
> SD and DIR are the same version.  Save a lot of headaches. 
>
> That said if you can update the FD I would for fixes. 
>
> Brock Palen 
> 1 (989) 277-6075 
> bro...@mlds-networks.com  
> www.mlds-networks.com 
> Websites, Linux, Hosting, Joomla, Consulting 
>
>
>
> > On Apr 27, 2020, at 10:05 AM, Goncalo Sousa  > wrote: 
> > 
> > I have read 
> https://docs.bareos.org/IntroductionAndTutorial/UpdatingBareos.html but 
> it doesnt specify the order or how to only the database. 
> > 
> > How do I upgrade it? 
> > 
> > The server is CentOS Linux release 7.5. This means I have to upgrade the 
> Clients FD's too or are they compatible? 
> > 
> > -- 
> > 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 bareos...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bareos-users/d3f8f977-3fc8-44f7-b458-8ea68a0d8652%40googlegroups.com.
>  
>
>
>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/8767d51e-a61a-429f-a033-7e2be528fc63%40googlegroups.com.


[bareos-users] How to update from 17.2 to 18.2

2020-04-27 Thread Goncalo Sousa
I have read 
https://docs.bareos.org/IntroductionAndTutorial/UpdatingBareos.html but it 
doesnt specify the order or how to only the database.

How do I upgrade it?

The server is CentOS Linux release 7.5. This means I have to upgrade the 
Clients FD's too or are they compatible?

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/d3f8f977-3fc8-44f7-b458-8ea68a0d8652%40googlegroups.com.


[bareos-users] Re: Storage error

2020-04-03 Thread Goncalo Sousa
Device {
  Name = FileStorage
  Media Type = File
  Archive Device = /var/lib/bareos/storage
  LabelMedia = yes;   # lets Bareos label unlabeled media
  Random Access = yes;
  AutomaticMount = yes;   # when device opened, read it
  RemovableMedia = no;
  AlwaysOpen = no;
  Description = "File device. A connecting Director must have the same Name 
and MediaType."
}

I have noticed that other clients have files here but the new client 
doesn't have a file in that location

sexta-feira, 3 de Abril de 2020 às 18:30:11 UTC+1, Evgenij escreveu:
>
> Hi, 
>
> Please show your SD configuration
> Default config is located in: ... bareos-sd.d/device/FileStorage.conf
>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/c8a51f95-3d9c-45f7-ab1f-1154136d3abc%40googlegroups.com.


[bareos-users] Storage error

2020-04-03 Thread Goncalo Sousa
Hello,

I added a new client and after adding I tried to run a job with bconsole 
and in WebGUI it gives me a storage error:




bareos-sd JobId 4151: Fatal error: Device reservation failed for JobId=4151:
bareos-dir JobId 4151: Fatal error: 
Storage daemon didn't accept Device "ts082-sd" because:
3924 Device "ts082-sd" not in SD Device resources or no matching Media Type.

When I do status storage it gives me:
 JobId  LevelFiles  Bytes   Status   FinishedName
===
4151  Full  0 0   Error03-Apr-20 17:24 ts082-job

And status client;
*status client=ts082-fd
Connecting to Client ts082-fd at 192.168.x.x:9102

ts082-fd Version: 17.2.4 (21 Sep 2017)  x86_64-redhat-linux-gnu redhat Red 
Hat Enterprise Linux Server release 5.7 (Tikanga)
Daemon started 03-Apr-20 17:02. Jobs: run=0 running=0.
 Heap: heap=135,168 smbytes=28,508 max_bytes=28,897 bufs=64 max_bufs=67
 Sizeof: boffset_t=8 size_t=8 debug=0 trace=0 bwlimit=0kB/s

Running Jobs:
bareos-dir (director) connected at: 03-Apr-20 17:44
No Jobs running.


Terminated Jobs:



Here is Client config files:

*ts082-fd.conf*
Client {
  Name = ts082-fd
  Address = 192.168.x.x
  Password = password
}

*ts082-fs.conf*
FileSet {
  Name = "ts082-fs"
  Description = "Backup all regular filesystems, determined by filesystem 
type."
  Include {
Options {
  Compression=GZIP
  Signature = MD5 # calculate md5 checksum per file
  One FS = No # change into other filessytems
  xattrsupport=yes
  FS Type = overlay
  FS Type = btrfs
  FS Type = ext2  # filesystems of given types will be backed up
  FS Type = ext3  # others will be ignored
  FS Type = ext4
  FS Type = reiserfs
  FS Type = jfs
  FS Type = xfs
  FS Type = zfs
  FS Type = ufs
  FS Type = vxfs
  FS Type = tmpfs
  FS Type = rootfs
}
File = /root
File = /home
File = /etc
File = /u01
}
  # Things that usually have to be excluded
  # You have to exclude /var/lib/bareos/storage
  # on your bareos server
  Exclude {
File = /proc
File = /tmp
File = /var/tmp
File = /.journal
File = /.fsck
File = /var
  }
}

*ts082-job.conf*
Job {
  Name = "ts082-job"
  Client = ts082-fd
  Type = Backup
  Level = Incremental
  FileSet = "ts082-fs"
  Schedule = "schedule"
  Storage = ts082-sd
  Messages = Standard
  Pool = pool-ts082
  Priority = 10
  Write Bootstrap = "/var/lib/bareos/%c.bsr"
}

*pool-ts082.conf*
Pool {
  Name = pool-ts082
  Pool Type = Backup
  Recycle = yes   # Bareos can automatically recycle 
Volumes
  Recycle Oldest Volume = yes
  AutoPrune = yes # Prune expired volumes
  Volume Retention = 30 days # How long should the Full Backups be 
kept? 
(   
 
#06)
  Maximum Volume Bytes = 25G  # Limit Volume size to something 
reasonable
  Maximum Volumes = 100   # Limit number of Volumes in Pool
  Label Format = "ts082-"  # Volumes will be labeled 
"Full-   
 
"
}

*ts082-sd.conf*
Storage {
  Name = ts082-sd
  Address = srvtsprdbos# N.B. Use a fully qualified name 
here 
(do 

not use "localhost" here).
  Password = "password"
  Device = ts082-sd
  Media Type = File
}


I cant see the error.

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/a1294b04-d41f-4766-a205-616ad52ad971%40googlegroups.com.


[bareos-users] Re: Client Run Job Before Script

2020-03-20 Thread Goncalo Sousa
Problem Resolved.

The was an issue with the script with TTY

sexta-feira, 20 de Março de 2020 às 15:22:48 UTC, Goncalo Sousa escreveu:
>
> Hello,
>
> I am having a issue with having a script run before the job.
>
> In the bareos server I, /etc/bareos/bareos-dir.d/job/tslxprdapp0001.conf 
> has the following configuration:
>
> Job {
>Name = "tslxprdapp0001-job"
>Client = tslxprdapp0001-fd
>Type = Backup
>Level = Incremental
>FileSet = "tslxprdapp0001-fs"
>Schedule = "schedule"
>Storage = tslxprdapp0001-sd
>Messages = Standard
>Pool = pool-tslxprdapp0001
>Priority = 10
>Write Bootstrap = "/var/lib/bareos/%c.bsr"
>Client Run Before Job = /root/pre_backup.sh
> }
>
> *The script is located in the client tslxprdapp0001*
>
>
> [image: Screenshot_2020-03-19 Job details localhost-dir.png]
>
>
>
> Why is it giving me this error?
>
>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/8c036c66-76fd-4270-8506-3d4848d6fe31%40googlegroups.com.


Re: [bareos-users] Client Run Job Before Script

2020-03-20 Thread Goncalo Sousa
In the documentation thats 2 tdifferent things but will try

sexta-feira, 20 de Março de 2020 às 16:58:25 UTC, aeron...@gmail.com 
escreveu:
>
> suggest "Client Run Before Job = /root/pre_backup.sh" should be "
> Run Before Job = /root/pre_backup.sh" i.e. remove the word client
> On 3/20/20 11:22 AM, Goncalo Sousa wrote:
>
> Hello,
>
> I am having a issue with having a script run before the job.
>
> In the bareos server I, /etc/bareos/bareos-dir.d/job/tslxprdapp0001.conf 
> has the following configuration:
>
> Job {
>Name = "tslxprdapp0001-job"
>Client = tslxprdapp0001-fd
>Type = Backup
>Level = Incremental
>FileSet = "tslxprdapp0001-fs"
>Schedule = "schedule"
>Storage = tslxprdapp0001-sd
>Messages = Standard
>Pool = pool-tslxprdapp0001
>Priority = 10
>Write Bootstrap = "/var/lib/bareos/%c.bsr"
>Client Run Before Job = /root/pre_backup.sh
> }
>
> *The script is located in the client tslxprdapp0001*
>
>
> [image: Screenshot_2020-03-19 Job details localhost-dir.png]
>
>
>
> Why is it giving me this error?
>
> -- 
> 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 bareos...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bareos-users/87c0a46e-5765-4e4f-989d-0ece3acb8e0e%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/bareos-users/87c0a46e-5765-4e4f-989d-0ece3acb8e0e%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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/6031d15f-25b6-40d5-8fd8-cc4f4edd6090%40googlegroups.com.


[bareos-users] Client Run Job Before Script

2020-03-20 Thread Goncalo Sousa
Hello,

I am having a issue with having a script run before the job.

In the bareos server I, /etc/bareos/bareos-dir.d/job/tslxprdapp0001.conf 
has the following configuration:

Job {
   Name = "tslxprdapp0001-job"
   Client = tslxprdapp0001-fd
   Type = Backup
   Level = Incremental
   FileSet = "tslxprdapp0001-fs"
   Schedule = "schedule"
   Storage = tslxprdapp0001-sd
   Messages = Standard
   Pool = pool-tslxprdapp0001
   Priority = 10
   Write Bootstrap = "/var/lib/bareos/%c.bsr"
   Client Run Before Job = /root/pre_backup.sh
}

*The script is located in the client tslxprdapp0001*


[image: Screenshot_2020-03-19 Job details localhost-dir.png]



Why is it giving me this error?

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/87c0a46e-5765-4e4f-989d-0ece3acb8e0e%40googlegroups.com.


[bareos-users] Re: How to execute a Script after and before job?

2020-03-09 Thread Goncalo Sousa
I configured this way on /etc/bareos/bareos-dir.d/job/server.conf

Job {
  Name = "server-job"
  Client = server-fd
  Type = Backup
  Level = Incremental
  FileSet = "server-fs"
  Schedule = "schedule"
  Storage = server-sd
  Messages = Standard
  Pool = pool-server
  Priority = 10
  Write Bootstrap = "/var/lib/bareos/%c.bsr"
  Client Run Before Job = /root/pre_backup.sh
  Client Run After Job = /root/pre_backup.sh
}

The script is located in the client side. It is giving me the following 
errors: 

server-fd JobId 3954: shell command: run ClientBeforeJob 
"/root/pre_backup.sh"
server-fd JobId 3954: ClientBeforeJob: the input device is not a TTY
server-fd JobId 3954: Error: Runscript: ClientBeforeJob returned non-zero 
status=1. ERR=Child exited with code 1
bareos-dir JobId 3954: Start Backup JobId 3954, 
Job=server-job.2020-03-09_14.56.25_04
bareos-dir JobId 3954: Using Device "server-sd" to write.
bareos-dir JobId 3954: Fatal error: Bad response to RunBeforeNow command: 
wanted 2000 OK RunBeforeNow, got 2905 Failed RunScript
bareos-dir JobId 3954: Fatal error: Client "server-fd" RunScript failed

segunda-feira, 9 de Março de 2020 às 12:26:02 UTC, Andrei Brezan escreveu:
>
> Just look at the documentation: 
> https://docs.bareos.org/Configuration/Director.html#job-resource
> You can have Client Run Before Job and Client Run After Job.
>
> --
> Andrei
>
> On Monday, 9 March 2020 13:19:31 UTC+1, Goncalo Sousa wrote:
>>
>> And how do I set to execute the script on the client? 
>>
>> For example: The script is located on the client and I want to execute it 
>> from it?
>>
>> sexta-feira, 6 de Março de 2020 às 16:32:46 UTC, Andrei Brezan escreveu:
>>>
>>> You need to put the script as the value:
>>>
>>> RunBeforeJob="/path/to/my/script"
>>>
>>> On Friday, 6 March 2020 16:52:26 UTC+1, Goncalo Sousa wrote:
>>>>
>>>> So as far as I know I add the option: RunAfterJob=yes and 
>>>> RunBeforeJob=yes in bareos-dir.d/job but how do I call the script?
>>>>
>>>>
>>>>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/d17e083e-ae37-4dce-881c-ddeefdb43c0a%40googlegroups.com.


[bareos-users] Re: How to execute a Script after and before job?

2020-03-09 Thread Goncalo Sousa
Basically edit /etc/bareos/bareos-dir.d/job/server.conf and add 
'ClientRunBeforeJob=/path/to/script/in/client' is this it?

segunda-feira, 9 de Março de 2020 às 12:26:02 UTC, Andrei Brezan escreveu:
>
> Just look at the documentation: 
> https://docs.bareos.org/Configuration/Director.html#job-resource
> You can have Client Run Before Job and Client Run After Job.
>
> --
> Andrei
>
> On Monday, 9 March 2020 13:19:31 UTC+1, Goncalo Sousa wrote:
>>
>> And how do I set to execute the script on the client? 
>>
>> For example: The script is located on the client and I want to execute it 
>> from it?
>>
>> sexta-feira, 6 de Março de 2020 às 16:32:46 UTC, Andrei Brezan escreveu:
>>>
>>> You need to put the script as the value:
>>>
>>> RunBeforeJob="/path/to/my/script"
>>>
>>> On Friday, 6 March 2020 16:52:26 UTC+1, Goncalo Sousa wrote:
>>>>
>>>> So as far as I know I add the option: RunAfterJob=yes and 
>>>> RunBeforeJob=yes in bareos-dir.d/job but how do I call the script?
>>>>
>>>>
>>>>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/87d417ed-228f-4b8a-bdd5-4484922efb2c%40googlegroups.com.


[bareos-users] Re: How to execute a Script after and before job?

2020-03-09 Thread Goncalo Sousa
And how do I set to execute the script on the client? 

For example: The script is located on the client and I want to execute it 
from it?

sexta-feira, 6 de Março de 2020 às 16:32:46 UTC, Andrei Brezan escreveu:
>
> You need to put the script as the value:
>
> RunBeforeJob="/path/to/my/script"
>
> On Friday, 6 March 2020 16:52:26 UTC+1, Goncalo Sousa wrote:
>>
>> So as far as I know I add the option: RunAfterJob=yes and 
>> RunBeforeJob=yes in bareos-dir.d/job but how do I call the script?
>>
>>
>>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/a2d8abb9-abd4-49a5-af0a-5f278e16db0b%40googlegroups.com.


[bareos-users] How to execute a Script after and before job?

2020-03-06 Thread Goncalo Sousa
So as far as I know I add the option: RunAfterJob=yes and RunBeforeJob=yes 
in bareos-dir.d/job but how do I call the script?


-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/f47e67f1-8cc7-41f3-b5b1-d4b02ca50644%40googlegroups.com.


Re: [bareos-users] How to run a script before and after the job?

2020-02-24 Thread Goncalo Sousa
But how can I evoke the script?

quinta-feira, 20 de Fevereiro de 2020 às 15:54:06 UTC, Andrei Brezan 
escreveu:
>
> It's in your job definition, so wherever you define the job. It can be in 
> separate files under bareos-dir.d/job or have all the jobs in one file, it 
> really depends on the config structure you have under /etc/bareos on linux 
> or /usr/local/etc/bareos under BSD. Just look for the job definitions that 
> you have there.
>
> --
> Andrei
>
> On Thursday, 20 February 2020 16:19:11 UTC+1, Goncalo Sousa wrote:
>>
>> Thanks. But in which file?
>>
>> quinta-feira, 20 de Fevereiro de 2020 às 14:37:41 UTC, Andrei Brezan 
>> escreveu:
>>>
>>> Hi Goncalo,
>>>
>>> If you use 
>>> https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_RunAfterJob
>>>  
>>> and specify "Runs On Client = Yes" then the script needs to be present on 
>>> the client you are backing up. If "Runs On Client = No" then the script 
>>> needs to be present on the director to run.
>>>
>>> You can also use 
>>> https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_ClientRunAfterJob
>>>  
>>> which is the same as a "RunAfterJob" with "Runs On Client = Yes".
>>>
>>> --
>>> Andrei
>>>
>>> On Thursday, 20 February 2020 15:26:15 UTC+1, Goncalo Sousa wrote:
>>>>
>>>> Thanks for the awnser . But where do I apply/writte the Run after job 
>>>> and run before job?
>>>>
>>>> quarta-feira, 19 de Fevereiro de 2020 às 22:26:11 UTC, Brock Palen 
>>>> escreveu:
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> > On Feb 19, 2020, at 1:01 PM, Goncalo Sousa  
>>>>> wrote: 
>>>>> > 
>>>>> > Hello guys, 
>>>>> > 
>>>>> > I recently started working with BareOS. I want to know how do I run 
>>>>> a script before and after the job. 
>>>>> > 
>>>>> > Thanks in advance 
>>>>>
>>>>> You are looking for Run Script in the Job directive 
>>>>>
>>>>>
>>>>> https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_RunScript
>>>>>  
>>>>>
>>>>> There are some shortcut versions also.  Often the catalog backup job 
>>>>> that comes with Bareos out the box includes an example of this to run a 
>>>>> script to dump the database.  Not sure if that’s still the case.   
>>>>>
>>>>>
>>>>> > 
>>>>> > -- 
>>>>> > 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 bareos...@googlegroups.com. 
>>>>> > To view this discussion on the web visit 
>>>>> https://groups.google.com/d/msgid/bareos-users/eb230c50-6e9d-4e52-aa44-ac3d9c1c4dab%40googlegroups.com.
>>>>>  
>>>>>
>>>>>
>>>>>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/fea7f9ef-7ad7-45dc-8c4f-6343ee74d2c5%40googlegroups.com.


Re: [bareos-users] How to run a script before and after the job?

2020-02-20 Thread Goncalo Sousa
Thanks. But in which file?

quinta-feira, 20 de Fevereiro de 2020 às 14:37:41 UTC, Andrei Brezan 
escreveu:
>
> Hi Goncalo,
>
> If you use 
> https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_RunAfterJob
>  
> and specify "Runs On Client = Yes" then the script needs to be present on 
> the client you are backing up. If "Runs On Client = No" then the script 
> needs to be present on the director to run.
>
> You can also use 
> https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_ClientRunAfterJob
>  
> which is the same as a "RunAfterJob" with "Runs On Client = Yes".
>
> --
> Andrei
>
> On Thursday, 20 February 2020 15:26:15 UTC+1, Goncalo Sousa wrote:
>>
>> Thanks for the awnser . But where do I apply/writte the Run after job and 
>> run before job?
>>
>> quarta-feira, 19 de Fevereiro de 2020 às 22:26:11 UTC, Brock Palen 
>> escreveu:
>>>
>>>
>>>
>>>
>>>
>>> > On Feb 19, 2020, at 1:01 PM, Goncalo Sousa  
>>> wrote: 
>>> > 
>>> > Hello guys, 
>>> > 
>>> > I recently started working with BareOS. I want to know how do I run a 
>>> script before and after the job. 
>>> > 
>>> > Thanks in advance 
>>>
>>> You are looking for Run Script in the Job directive 
>>>
>>>
>>> https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_RunScript
>>>  
>>>
>>> There are some shortcut versions also.  Often the catalog backup job 
>>> that comes with Bareos out the box includes an example of this to run a 
>>> script to dump the database.  Not sure if that’s still the case.   
>>>
>>>
>>> > 
>>> > -- 
>>> > 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 bareos...@googlegroups.com. 
>>> > To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/bareos-users/eb230c50-6e9d-4e52-aa44-ac3d9c1c4dab%40googlegroups.com.
>>>  
>>>
>>>
>>>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/8faa7b06-e8b3-42cf-8237-b4476cd67be6%40googlegroups.com.


Re: [bareos-users] How to run a script before and after the job?

2020-02-20 Thread Goncalo Sousa
Thanks for the awnser . But where do I apply/writte the Run after job and 
run before job?

quarta-feira, 19 de Fevereiro de 2020 às 22:26:11 UTC, Brock Palen escreveu:
>
>
>
>
>
> > On Feb 19, 2020, at 1:01 PM, Goncalo Sousa  > wrote: 
> > 
> > Hello guys, 
> > 
> > I recently started working with BareOS. I want to know how do I run a 
> script before and after the job. 
> > 
> > Thanks in advance 
>
> You are looking for Run Script in the Job directive 
>
>
> https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_RunScript 
>
> There are some shortcut versions also.  Often the catalog backup job that 
> comes with Bareos out the box includes an example of this to run a script 
> to dump the database.  Not sure if that’s still the case.   
>
>
> > 
> > -- 
> > 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 bareos...@googlegroups.com . 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bareos-users/eb230c50-6e9d-4e52-aa44-ac3d9c1c4dab%40googlegroups.com.
>  
>
>
>

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/7d7cd3e0-f25b-489e-a648-53fd34a439ae%40googlegroups.com.


[bareos-users] How to run a script before and after the job?

2020-02-19 Thread Goncalo Sousa
Hello guys,

I recently started working with BareOS. I want to know how do I run a 
script before and after the job.

Thanks in advance

-- 
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 bareos-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bareos-users/eb230c50-6e9d-4e52-aa44-ac3d9c1c4dab%40googlegroups.com.