Re: [bareos-users] Re: FIleset

2019-04-07 Thread Spadajspadaj
On 06.04.2019 09:25, muravey.novosibi...@gmail.com wrote: четверг, 30 ноября 2017 г., 11:27:43 UTC+7 пользователь oldt...@gmail.com написал: On Friday, November 17, 2017 at 6:18:40 AM UTC-5, Nikitin Artem wrote: Hello. I’m executing a sequence of commands in the Fileset resource (File = “ls

Re: [bareos-users] 3999 Device "vchanger-1" not found or could not be opened.

2019-03-18 Thread Spadajspadaj
Thanks for the config but if I'm not mistaken it won't let me do what I mainly wanted to achieve with vchanger - it won't let me plug in and out external drives. That's the whole point of using vchanger for me so I can take one external disk and move it somewhere offline or even off-site, Your

Re: [bareos-users] failed to handle the OVA files using sparse option

2019-07-12 Thread Spadajspadaj
Are you sure the OVA file is a sparse one? AFAIR, thin provisioning means that the file size should sum up to already provisioned chunks of data. In other words, if inside the virtual machine you use 4G and have a 4G file even though the maximum disk size is 30G you'd have a 4G file. But it

Re: [bareos-users] failed to handle the OVA files using sparse option

2019-07-15 Thread Spadajspadaj
ed/VM1.ova 166G../restored/VM1.ova <--- reverted to full allocated file. On Friday, July 12, 2019 at 10:40:31 PM UTC+8, Spadajspadaj wrote: Are you sure the OVA file is a sparse one? AFAIR, thin provisioning means that the file size should sum up to already provisioned chunks of da

Re: [bareos-users] Re: Bareos active client network setup not working

2019-09-13 Thread Spadajspadaj
Firstly, let me say that - from the security point of view - it's usualy best idea to let the connection come from the director to the clients (you usually connect from safer zone to less safe one). Secondly -

Re: [bareos-users] User defined maximum volume capacity 107,374,182,400 exceeded on device, so where is to increase?

2019-09-09 Thread Spadajspadaj
You've set Maximum Volumes for each of the pools to just one volume. So the SD won't automaticaly create more volumes than that. If the volume is filled to the brim, your system won't be able to allocate any more files because you prohibited it yourself. Usually for File devices you also set

Re: [bareos-users] Changing default ports

2019-08-04 Thread Spadajspadaj
On 04.08.2019 10:18, Roman Starun wrote:} But as soon as i change SDport to 8103, SD does not start. Bareos ver 18.2.5, Centos 7. Since you're using CentOS, there is a big chance that you have SELinux enabled. So SELinux is preventing a bind to non-labeled port. You have to label port 8103

Re: [bareos-users] failed to handle the OVA files using sparse option

2019-07-16 Thread Spadajspadaj
On 16.07.2019 08:30, Andreas Rogge wrote: "By turning on the *sparse* option, Bareos will specifically look for empty space in the file, and any empty space will not be written to the Volume, nor will it be restored." (https://docs.bareos.org/Configuration/Director.html#fileset-resource )Sorry.

Re: [bareos-users] failed to handle the OVA files using sparse option

2019-07-16 Thread Spadajspadaj
On 15.07.2019 09:05, Andreas Rogge wrote: [root@server export-domain]# ls -l ../restored/VM1.ova -rw---. 1 root root 177794008064 Jul 12 15:07 ../restored/VM1.ova [root@mgnt21 export-domain]# du ../restored/VM1.ova 166G../restored/VM1.ova <--- reverted to full allocated file. That's

Re: [bareos-users] Re: Waiting for a client

2019-11-12 Thread Spadajspadaj
On 12.11.2019 09:11, Jörg Steffens wrote: On 12.11.19 at 07:59 wrote Spadajspadaj: Hi there. I added a laptop client to my bareos setup and everything runs mostly fine except for the fact that if the job is scheduled for - let's say - 9pm, it tries to run, tries to connect to fd and since

Re: [bareos-users] Backup Computer von die Netwerk

2019-11-21 Thread Spadajspadaj
This is not a good approach. Firstly, if you mount a remote directory as a network drive (a letter z:) for a particular user. A bareos client runs in different user's context so it doesn't see that mounted path. Secondly even if you managed to force bareos to see the network directory (by

Re: [bareos-users] Howto get used tapes in bareos

2019-12-03 Thread Spadajspadaj
On 03.12.2019 11:45, Adam Podstawka wrote: Hi, i have a little problem, we build a new backup system and wanted to use our old tapes in it. But the tapes are all labeled already through the old system. An "label barcodes" doesn't add them to the pool, as they are already labeld. i can't get

[bareos-users] Windows backups fail

2019-10-16 Thread Spadajspadaj
Hi. I have a setup where I backup few linux machines and one Windows workstation. All linux clients work fine, the Windows machine sometimes does work OK but sometimes the jobs fail. Typical failed job run: 15-Oct 21:00 backup1-dir JobId 1589: Start Backup JobId 1589,

Re: [bareos-users] Windows backups fail

2019-10-23 Thread Spadajspadaj
Firstly, sorry for replying personally to you, not to the list before. Hit "Reply" instead of "Reply to the list". On 16.10.2019 09:11, Spadajspadaj wrote: On 16.10.2019 09:01, Andreas Rogge wrote: Am 16.10.19 um 08:17 schrieb Spadajspadaj: 15-Oct 23:52 backup1-dir Job

Re: [bareos-users] Segmentation fault (core dumped)

2019-11-27 Thread Spadajspadaj
On that note - is there any "blessed" way to migrate existing installation from MySQL to Postgres? I can easily google some not-very-official recipes for bacula but are there any advices for bareos? (and any more reasonable way to migrate than "export everything to csv and pull that csv into

Re: [bareos-users] Re: bareos-fd client limit access to files

2019-11-23 Thread Spadajspadaj
I'd add a thing or two to Jörg's answer. Firstly, if you don't trust the backup provider, the whole backup setup is highly questionable. Remember that even though you can encrypt the file contents, you keep the filenames in clear text in the database, so there is at least a vector of

Re: [bareos-users] show files of a job?

2019-11-04 Thread Spadajspadaj
Hi Sven. I'd go for joining info from File and Path tables in bareos database selecting by File.JobId. For size you'd need to decode LStat field of File Table (I'm pretty sure I'd seen some decoders somewhere on the Internet). Best regards MK On 02.11.2019 08:47, Sven Gehr wrote: hello

[bareos-users] Waiting for a client

2019-11-11 Thread Spadajspadaj
Hi there. I added a laptop client to my bareos setup and everything runs mostly fine except for the fact that if the job is scheduled for - let's say - 9pm, it tries to run, tries to connect to fd and since the laptop is down, the job fails. I was wondering how I can avoid those failed jobs

Re: [bareos-users] Compression and Encryption on bareos Clients

2019-09-25 Thread Spadajspadaj
Firstly, it's perfectly normal that hardware compression rate drops when dealing with encrypted data. Compression ratio depends heavily on entropy of input data and good encryption assures uniform distribution of encrypted data so there's no point in compressing data _after_ encryption.

Re: [bareos-users] restore is not restoring files

2020-02-12 Thread Spadajspadaj
Apache log shows HTTP transactions, not the bareos logs. So the "client" in this context is the computer with your web browser. Hence the IP has nothing to do with the computer you want to restore. Regardless of the underlying cause which I don't know, the code you provided shows that PHP

Re: [bareos-users] Backing up WwebDAV

2020-02-28 Thread Spadajspadaj
With Bareos it's usually not a question whether it is possible but how to do it ;-) But seriously - since WebDAV is not a storage as such, just a method of access, you have two options. Either you have access to the server from which the DAV share is served and you back it up locally. But I

Re: [bareos-users] How to get a warning of an unmounted shared folder (without any files or folders)?

2020-02-24 Thread Spadajspadaj
Bareos is very flexible in terms of preparing a job. You can run a "pre-job" script. It can be run either on server's side or client's side. I suppose you'd prefer client's side in this case. https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_RunScript And you can fail the

Re: [bareos-users] EXTERNAL CUSTOMER BACKUP - BACKUP DE CLIENTE EXTERNO

2020-01-13 Thread Spadajspadaj
Remember that in default installation the bareos director reaches to the fd to initiate the backup job but then the fd connects to sd to send the backup data. If you don't allow for incoming connections (which is understandable in case of i.e. DMZ-located clients), you need to use passive

Re: [bareos-users] "Volume Retention" changes does not affect purged volumes

2020-01-20 Thread Spadajspadaj
If you change settings in the config file they will be applied to new volumes only as you already noticed. If old volumes are purged, only their status is changed they are not deleted and created anew. So you have to manually update volume using bconsole "update" command. On 20.01.2020 13:23,

Re: [bareos-users] File compression

2020-01-21 Thread Spadajspadaj
The question is whether the job output shows Compression. A volume is a storage unit. It may be a fixed file, it may be a tape. We don't know your configuration here. I, for example, have fixed-size 40G file-based volumes so the volumes size don't change but the jobs can be bigger or smaller

Re: [bareos-users] Fileset update

2020-01-04 Thread Spadajspadaj
ature = SHA1    Compression = GZIP6 } File = "/home/bee" File = "/media/windows/Users/bee"    } } to FileSet {    Name = "Full_Laptop_Set" ... bee On 1/1/20 11:35 AM, Spadajspadaj wrote: On 01.01.2020 17:24, aeronex...@gmail.com wrote: I have upda

Re: [bareos-users] Fileset update

2020-01-01 Thread Spadajspadaj
On 01.01.2020 17:24, aeronex...@gmail.com wrote: I have update my fileset to include a new exclude statement. I have restarted Bareos (including reboot the server). Unfortunately, Bareos continues to use the old version of the fileset definition for the backup. I do not find an update

Re: [bareos-users] MySQL->Postgres database converter strange behaviour

2020-03-12 Thread Spadajspadaj
send us your original command line for bareos-dbcopy (corresponding to the strace) so we can understand why it comes to this output. Thanks! Am 11.03.20 um 20:26 schrieb Spadajspadaj: Hello. I've been trying to migrate my setup from MySQL to Postgres using the bareos-dbcopy utility. It is

[bareos-users] Re: MySQL->Postgres database converter strange behaviour

2020-03-12 Thread Spadajspadaj
at the time and not shown in help; I found it in sources) it tries to copy the rows. We'll see how it goes. On 11.03.2020 20:26, Spadajspadaj wrote: Hello. I've been trying to migrate my setup from MySQL to Postgres using the bareos-dbcopy utility. It is almost working. Almost, because it copies

Re: [bareos-users] Re: MySQL->Postgres database converter strange behaviour

2020-03-12 Thread Spadajspadaj
It seems that with -l 1 (i have only some 5 mil entries in File table) the migration completed and now my instance is running ok on postgres. On 12.03.2020 08:25, Spadajspadaj wrote: BTW, If I'm seeing correctly, the dbcopy tool is inserting entries with INSERT INTO even though

Re: [bareos-users] Howto move postgresql to another share?

2020-03-09 Thread Spadajspadaj
Every way is safe as long as you prepare for it :-) But seriously, you have two main options 1) Do a database dump and restore to a bigger server. (the "logical migration") 2) Stop the postgresql service, make a new filesystem on a bigger device, move the database files there and mount the

[bareos-users] MySQL->Postgres database converter strange behaviour

2020-03-11 Thread Spadajspadaj
Hello. I've been trying to migrate my setup from MySQL to Postgres using the bareos-dbcopy utility. It is almost working. Almost, because it copies only one record from each table. I ran it with strace and it seems that it's not me, it's him ;-) Strace excerpt from the File table

Re: [bareos-users] backup does not move to next storage

2020-04-21 Thread Spadajspadaj
You can try "update slots" so the sd rescans the directory and checks for present volumes but I'm not sure if it works with normal directory storage. On 20.04.2020 22:01, Erich Eckner wrote: Another question as a workaround: Is it possible to move volumes from one device to another? If so:

Re: [bareos-users] backup does not move to next storage

2020-04-21 Thread Spadajspadaj
Unless you really need the automatic fall-over to the next storage, you can also set up a vchanger. That way you can also control fixed number of fixed-size volumes. I prefer this approach to dynamicaly created media files but YMMV. On 21.04.2020 16:34, Brock Palen wrote: It is possible to

[bareos-users] Modulo schedules with weekdays

2020-03-31 Thread Spadajspadaj
Hi. Just to make sure that I understand my config good, because the manual is a bit unclear on this. What I wanted was to make a schedule that was run every other week on a given day of the week (i.e. every second saturday, or every third thursday). The examples of the modulo scheduler use

Re: [bareos-users] job.conf - disable job

2020-03-26 Thread Spadajspadaj
https://docs.bareos.org/Configuration/Director.html#config-Dir_Job_Enabled On 26.03.2020 10:07, Martin Krämer wrote: Hi All, via bareos-webui -> "Jobs "-> "Actions" I can disable individual jobs. As said in the action button comment "Disabling is a temporary operation until the director

Re: [bareos-users] Deleting old volumes

2020-04-25 Thread Spadajspadaj
Firstly, you cannot have bareos delete files without dirty tricks. It can truncate volumes on purge as someone already pointed out. If I were you and wanted to have fixed number of backups regardless of any other parameters, I'd go for maximum volume jobs=1 and apropriate retention and

Re: [bareos-users] backup does not move to next storage

2020-04-22 Thread Spadajspadaj
On 21.04.2020 17:44, Erich Eckner wrote: On Tue, 21 Apr 2020, Spadajspadaj wrote: Unless you really need the automatic fall-over to the next storage, you can also set up a vchanger. That way you can also control fixed number of fixed-size volumes. I prefer this approach to dynamicaly

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

2020-04-29 Thread Spadajspadaj
In short, yum history rollback is not a good way to do do anything other than very small package changes. i.e. downgrading from version 1.4.27 to 1.4.26 of some package or completely removing package you just installed for testing along with all dependencies. Longer explanation: Yum history

Re: [bareos-users] Bareos data encryption

2020-04-29 Thread Spadajspadaj
On 29.04.2020 14:09, Andreas Rogge wrote: Am 29.04.20 um 13:22 schrieb Valentin Dzhorov: Can anyone let me know what am I doing wrong here? Thank you all in advance! That really depends on where you see the "Encryption: None" message. In Bareos' context encryption can mean three different

Re: [bareos-users] Confused about some features, who can explain me what happens

2020-05-12 Thread Spadajspadaj
On 12.05.2020 11:34, 'DUCARROZ Birgit' via bareos-users wrote: 2) I thought that incremental level is writing into incremental-Volume, full level is writing into full-Volume etc. But it is not. Why? Depends how your job is configured. You might just use Pool directive to specify a pool

Re: [bareos-users] backup does not move to next storage

2020-05-10 Thread Spadajspadaj
Erich On Sun, 26 Apr 2020, spadaj wrote: No problem, mate. Hope this is of some help. If you have any questions, don't hesitate to ask. I can't guarantee I'll be able to give reasonable advice but I'll try :-) Cheers. W dniu 25.04.2020 o 21:53, Erich Eckner pisze: Hi spadajspadaj, I never c

Re: [bareos-users] show volumes, that only have data from specific client. cleanup database and volumes

2020-05-19 Thread Spadajspadaj
On 19.05.2020 10:57, Miguel da Silva wrote: Hello, I have a massive Bareos Setup and one of my clients (Let's name him "client1") has had backup errors or slow backups. So i investigated and found the Problem on client1. Now i want to remove all old traces of data of client1 from the

Re: [bareos-users] show volumes, that only have data from specific client. cleanup database and volumes

2020-05-19 Thread Spadajspadaj
On 19.05.2020 13:08, Miguel da Silva wrote: There are two approaches: 1) The bareos way - purge jobs associated with given client and let the bareos do its job. And that's the approach I'd recommend. Purge jobs from given client, make sure you have "purge volume

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

2020-03-20 Thread Spadajspadaj
The bareos-fd runs with root user by default so it should have access but there canbe many different issues with the script itself. One thing is SELinux - is it on? It might mess things up. Second one is PATH variable. It might not be what you think when you're executing the script so some of

Re: [bareos-users] Re: Relabel Tapes

2020-06-09 Thread Spadajspadaj
On 09.06.2020 18:16, Jörg Steffens wrote: On 09.06.20 at 14:58 wrote 'birgit.ducarroz' via bareos-users: Did you try bconsole * relabel ? Relabel will only work on empty/purged volumes. By relabeling a tape, data will be lost. AFAIK it is only possible to append data to a physical tape, not

Re: [bareos-users] Howto Correctly Configure Full Pool For Catalog Backup For an Archiving System?

2020-06-05 Thread Spadajspadaj
If you don't specify retention period, they will get set at default values so it's not a proper solution. I'd rather go and set it to some insanely huge value. But of course it will result in ever-growing storage demand for the catalog database since no jobs/files/volumes will be getting

Re: [bareos-users] Re: Bareos high availability

2020-06-05 Thread Spadajspadaj
I would be, however, cautious about possible scenarios where a node breaks and fails over to the other server - for example - in the middle of a backup job. Such scenarios would need some testing so you know what to expect and how to handle such situation. On 05.06.2020 09:00, Oleg Volkov

Re: [bareos-users] Re: Bareos high availability

2020-06-05 Thread Spadajspadaj
manually as usual for failed job. K.O. On Friday, June 5, 2020 at 1:32:40 PM UTC+3, Spadajspadaj wrote: I would be, however, cautious about possible scenarios where a node breaks and fails over to the other server - for example - in the middle of a backup job. Such scenarios would need

Re: [bareos-users] mysqldump 128 GB limit ?

2020-06-11 Thread Spadajspadaj
On 11.06.2020 14:29, Kai Zimmer wrote: Hi, in former times i used bareos with a mysql database backend. However it became too slow and i switched to a secondary postgres catalogue. I need to keep the mysql database as a history though. Now i'm switching from Ubuntu 16.04 (mysql 5.7) to

[bareos-users] Way to prevent from cumulating jobs

2020-06-09 Thread Spadajspadaj
Hi there. I'm wondering whether there is a reasonable way to prevent bareos from scheduling jobs from same client in quick succession. Here's what I mean. We have a bareos setup with a single tape drive. The jobs are scheduled daily with Inc/Diff/Full schedule. If we fail to change tape as

Re: [bareos-users] Way to prevent from cumulating jobs

2020-06-09 Thread Spadajspadaj
On 09.06.2020 11:30, Andrei Brezan wrote: On 09/06/2020 11:24, Spadajspadaj wrote: Hi there. I'm wondering whether there is a reasonable way to prevent bareos from scheduling jobs from same client in quick succession. Here's what I mean. We have a bareos setup with a single tape drive

Re: [bareos-users] autodelete pool

2020-06-15 Thread Spadajspadaj
Hi Birgit. To be honest, I fail to see what would be the point of deleting a pool from a script. If you need to delete a pool, you do it once, interactively and everything's good. Of course you can do a delete pool from bconsole but if you don't delete it from the configuration it'll get

Re: [bareos-users] Bareos storage error

2020-06-17 Thread Spadajspadaj
Can you tell me how to do a little guide? I am a novice in this, in what format do I have to mount the disk and what privileges do I have to give it? I have no clue what your configuration looks like but I suppose you've already mounted the disk (at least that's what the

Re: [bareos-users] Long Path UNC

2020-06-24 Thread Spadajspadaj
Apart from all the possible other prerequisites, you have to remember that the paths have to be accessible from the context of the user from which the bareos-fd is running. So if you - for example - mount the NAS share as a g: drive from your normal user, it won't be visible to the bareos-fd

Re: [bareos-users] Bareos storage error

2020-06-16 Thread Spadajspadaj
As tou can see, the Storage Daemon can't create files on the disk. Since the device is formatted with ext4 filesystem you need to set appropriate ownership and access rights to the storage directory _after you've mounted it_. On 16.06.2020 12:59, lucas wrote: Hi, I'm trying to change the

Re: [bareos-users] Bareos storage error

2020-06-16 Thread Spadajspadaj
On 16.06.2020 13:31, lucas wrote: Can you tell me how to do a little guide? I am a novice in this, in what format do I have to mount the disk and what privileges do I have to give it? I have no clue what your configuration looks like but I suppose you've already mounted the disk (at

Re: [bareos-users] autodelete pool

2020-06-16 Thread Spadajspadaj
automation solution (for example - ansible) for installing a server from scratch instead of own script. On 16.06.2020 12:00, DUCARROZ Birgit wrote: Hi Spadajspadaj, First of all, thank you for your response. I created a script which completely installs my server. The script is meant to ease a

Re: [bareos-users] vchanger keeps mounting wrong volume

2020-06-30 Thread Spadajspadaj
On 30.06.2020 07:24, Erich Eckner wrote: Device "vchanger-1-0" (/var/spool/vchanger/vchanger-1/0) is waiting for sysop intervention:     Volume:  vchanger-1_0005_0153     Pool:    Incremental     Media type:  Offsite-File     Device is BLOCKED waiting for mount of volume

Re: [bareos-users] How can I keep jobs/volumes beyond retention?

2020-08-01 Thread Spadajspadaj
On 31.07.2020 21:18, Ariel Esteban Salvo wrote: Hi! One of our clients was hit by a ransomware attack, Bareos did its job and we were able to rebuild most of what was lost. I'd like to keep the jobs I used to restore for a while longer (just in case) What are my options? I've seen

Re: [bareos-users] How can I keep jobs/volumes beyond retention?

2020-08-01 Thread Spadajspadaj
Damn, my bad. I looked hastily into update and was pretty sure it worked for jobs the same way it does for volumes. Apparently it does not. So you'd have to set retention period on whole volumes (here I'm pretty sure you can do that; I did it myself ;->). Sorry for the confusion. On