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/