Re: [BackupPC-users] BackupFilesOnly file with format date

2017-10-16 Thread Jose Barriga
Thank you very much for the quick answer.
you are correct, I save space on my server backups backuppc when defining
the expiration time in my backups, I currently have it configured that way.
I have a backuppc client that works as a database server, locally database
backups are performed

I use rsyncd to run the backups on each client with the following
configuration:
hosts allow = 172.100.0.0/24
hosts deny = *
list = true
uid = root
gid = root
auth users = backupuser
secrets file = /etc/rsyncd.secrets
read only = false
strict modes = false

[database]
path = /var/lib/pgsql/9.5/backups

Within the /var/lib/pgsql/9.5/backups path, local backups are generated
daily with the following structure:
1Gb wis_17-10-14_minimal.sql.gz
1Gb wis_17-10-15_minimal.sql.gz
1Gb wis_17-10-16_minimal.sql.gz

And on my backupPC server I set the path in xfer
RsyncShareName = database

Up to this point there is no problem with incremental backups, but with
full backups (set every 7 days) I will repeatedly have all postgresql
backups (1gb each). what I need is that my backups complete with backuppc
only consider the current postgresql local backups and thus avoid saving
all local backups, probe the following statement and worked correctly,
however in the parameter BackupFilesOnly does not work.
rsync  wis_`date +%y-%m-%d`_minimal.sql.gz root@backupserver:/directory


[image: http://www.finkok.com/team/signature/finkok/jbarriga.png]

La calidad del servicio que usted recibe es muy importante para FINKOK, por
lo que si usted considera que la atención que recibió no es la que usted
esperaba o tiene algún comentario o sugerencia no dude en contactar a
Dirección General, estaremos gustosos de poder escuchar sus comentarios o
sugerencias para mejorar el servicio prestado. Teléfono: (55) 84-21-35-25
ext 901 / comentar...@finkok.com

2017-10-16 15:51 GMT-05:00 Les Mikesell :

> On Mon, Oct 16, 2017 at 2:52 PM, Jose Barriga  wrote:
> > hi everyone, I have many backups with different dates in the same
> directory,
> > by example: file-2017-10-16.txt , file-2017-10-17.txt, etc. I want to
> backup
> > only the current day, but I do not know how to set the backupOnlyFiles
> > parameter. im trying with:
> >
> > BackupOnlyFiles = file-'$date +%y-%m-%d'.txt
> >
> > but backuppc does not resolve this format.
> > I do not want to back up the whole directory because in each full backup
> I'm
> > going to consume a lot of disk space. any suggest? thanks
> >
>
> I think it is possible to evaluate some perl code in the per-host
> config files but you'll lose the ability to use the web editor if you
> do.  But first, do you understand that backuppc pools all copies of
> the files?  That is, if you backed up yesterday's file yesterday and
> it is included in today's backup too, you aren't going to take more
> space, or even much more time by including it again.  You'll only save
> space if you are expiring the backups earlier than you remove the
> files on the source system.
>
> --
>Les Mikesell
>  lesmikes...@gmail.com
>
> 
> --
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> ___
> BackupPC-users mailing list
> BackupPC-users@lists.sourceforge.net
> List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
> Wiki:http://backuppc.wiki.sourceforge.net
> Project: http://backuppc.sourceforge.net/
>
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] BackupFilesOnly file with format date

2017-10-16 Thread Les Mikesell
On Mon, Oct 16, 2017 at 2:52 PM, Jose Barriga  wrote:
> hi everyone, I have many backups with different dates in the same directory,
> by example: file-2017-10-16.txt , file-2017-10-17.txt, etc. I want to backup
> only the current day, but I do not know how to set the backupOnlyFiles
> parameter. im trying with:
>
> BackupOnlyFiles = file-'$date +%y-%m-%d'.txt
>
> but backuppc does not resolve this format.
> I do not want to back up the whole directory because in each full backup I'm
> going to consume a lot of disk space. any suggest? thanks
>

I think it is possible to evaluate some perl code in the per-host
config files but you'll lose the ability to use the web editor if you
do.  But first, do you understand that backuppc pools all copies of
the files?  That is, if you backed up yesterday's file yesterday and
it is included in today's backup too, you aren't going to take more
space, or even much more time by including it again.  You'll only save
space if you are expiring the backups earlier than you remove the
files on the source system.

-- 
   Les Mikesell
 lesmikes...@gmail.com

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] BackupFilesOnly file with format date

2017-10-16 Thread Jose Barriga
hi everyone, I have many backups with different dates in the same
directory, by example: file-2017-10-16.txt , file-2017-10-17.txt, etc. I
want to backup only the current day, but I do not know how to set the
backupOnlyFiles parameter. im trying with:

BackupOnlyFiles = file-'$date +%y-%m-%d'.txt

but backuppc does not resolve this format.
I do not want to back up the whole directory because in each full backup
I'm going to consume a lot of disk space. any suggest? thanks


wis_$date +%y-%m-%d_minimal.sql.gz
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backing up a NFS share on Windows using BackupPC

2017-10-16 Thread Michael Stowe

On 2017-10-16 08:08, B wrote:

On Mon, 16 Oct 2017 15:03:08 + (UTC)
Michael Stowe  wrote:


needs, you may choose to ignore this, or implement the
Windows-recommended solution of shadow-copies.


It seems to be the right answer, as many (if not all?) w$ backup 
programs

(O-S or commercial) use the shadow copy to ensure no locking problems
will hamper the operation.

JY


That's true, and it also takes care of file consistency issues.  Some 
Windows users only care about data files, in which case it may suffice 
just to make sure all open programs are closed.  On the other hand, I 
prefer to back up everything, including the registry and files left 
open, so I manage shadow copies and rsync:


https://u2182357.ct.sendgrid.net/wf/click?upn=BlpU7GL5eKRV06yRQzHbstwqTS3zCbly04YAwViP-2FvXL515zbQjVqRWCd3BDt4aU_OypFYCWzG5ApGW-2FFpGTxc4RCS9eud0Dl1htN5rYoUZ8To4zeNUFBkAGI3hzer91CMQjaQF6Nu8tVkr3s-2B7FyJxmihIFr9Fz0SzKuiTB2d3R9GXL0dUZjtMxFeYmchy-2BTvYtvbhtfvn7l0dntUX60-2FfpnyVZDujzdItIh7OYVWFzRsvo9sx99PFzDZCUjVBU7-2BuvmIOpjWn4aG4WL3DP-2FIYcU5qL0GGRUNWL9hlqIkiM-3D
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backing up a NFS share on Windows using BackupPC

2017-10-16 Thread Bzzzz
On Mon, 16 Oct 2017 15:03:08 + (UTC)
Michael Stowe  wrote:

> needs, you may choose to ignore this, or implement the
> Windows-recommended solution of shadow-copies.

It seems to be the right answer, as many (if not all?) w$ backup programs
(O-S or commercial) use the shadow copy to ensure no locking problems
will hamper the operation.

JY

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


Re: [BackupPC-users] Backing up a NFS share on Windows using BackupPC

2017-10-16 Thread Michael Stowe

On 2017-10-16 03:39, Marc Gilliatt wrote:

Hi

 How do I backup an NFS share on a Windows server through BackupPC? I
have a share that I would like to backup. I’m using BackupPC on
Ubuntu, I’ve never backed up before on a Windows server before. Is
the task as simple as backing up a Linux server? Do I still use rsync
or smb? I’m not sure how I would get the ssh key over the Windows
server. I've read online to use smb for the XherMethod? Would then the
smbShareUserName and Password be the Windows server credentials?

 Thanks,
 Marc


It's not as simple as backing up a Linux server, because the file 
semantics are different, and Windows will have files open in exclusive 
mode, which can complicate backing things up.  Depending on your needs, 
you may choose to ignore this, or implement the Windows-recommended 
solution of shadow-copies.


SMB/CIFS works more or less as you're expect (open files being the 
primary issue.)  Rsync is superior in a number of ways, but you'd need 
to implement it yourself.  I (and others) have put together solutions 
and/or packages to smooth this along, but it still requires more work 
than a typical Linux host.
--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/


[BackupPC-users] Backing up a NFS share on Windows using BackupPC

2017-10-16 Thread Marc Gilliatt
Hi

How do I backup an NFS share on a Windows server through BackupPC? I have a 
share that I would like to backup. I’m using BackupPC on Ubuntu, I’ve never 
backed up before on a Windows server before. Is the task as simple as backing 
up a Linux server? Do I still use rsync or smb? I’m not sure how I would get 
the ssh key over the Windows server. I've read online to use smb for the 
XherMethod? Would then the smbShareUserName and Password be the Windows server 
credentials?

Thanks,
Marc

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot___
BackupPC-users mailing list
BackupPC-users@lists.sourceforge.net
List:https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/