Re: [BackupPC-users] exclude ignores hidden folders
On 6/15/2013 4:26 AM, stompdagg...@yahoo.com wrote: Hello Bowie, On 6/14/2013 4:23 AM, stompdagg...@yahoo.com wrote: Hello, I'm trying to backup my /home folder but exclude the vm folder used by VB, but for some reason when ever I run backup, the folder's content is always backed up. what am I doing wrong? here is the host's config: $Conf{RsyncShareName} = [ '/home', '/root' ]; Ok, so you have two shares, '/home' and '/root'. $Conf{BackupFilesExclude} = { '/home/virt_admin' = [ 'Machines' ], This will do absolutely nothing, since there is no share named '/home/virt_admin' I see, strangely enough I remember that this actually worked and the content of Machines wasn't updated. none the less I'll do this, thanks. '/home/*' = [ '.VirtualBox/Machines', 'Downloads' ] }; This one should work to exclude files/folders with these names under the '/home' share. thing is, it doesn't seems to do that, I still backup this folder's content. Actually, I take that back. I must not have noticed the * at the end. That one won't work either because there is not a share named '/home/*'. The first part of the exclude must either be a share name or '*' if it is to apply to all shares. So in your case, only the following will work: '/root' '/home' '*' Anything else will be ignored. So replace both of your current excludes with this and it should work better: $Conf{BackupFilesExclude} = { '/home' = [ '.VirtualBox/Machines', 'Downloads', '/virt_admin/Machines', ], }; -- Bowie -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ 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] backup schedule during specific period of time
Could anyone please tell me, how can I configure backuppc to set a specific period of time for a host to do backup? i.e I want to have a plan to make backup for a host only between 18:00 and 20:00 Thanks in advance +-- |This was sent by masoo...@gmail.com via Backup Central. |Forward SPAM to ab...@backupcentral.com. +-- -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ 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] backup schedule during specific period of time
On Mon, Jun 17, 2013 at 9:31 AM, masoodmx backuppc-fo...@backupcentral.com wrote: Could anyone please tell me, how can I configure backuppc to set a specific period of time for a host to do backup? i.e I want to have a plan to make backup for a host only between 18:00 and 20:00 Look for the Blackout related variables on http://backuppc.sourceforge.net/faq/BackupPC.html for the full details, but basically you would just go to the web page for that host, 'Edit Config' (the upper one in the per-host section) and and under 'Schedule' set the BlackoutPeriods to: hourBegin 20 hourEnd18 weekdays 0, 1, 2, 3, 4, 5, 6 That is, you tell backuppc when _not_ to back up the target. Also note that the blackout schedule doesn't take effect until BlackoutGoodCnt days have elapsed with backuppc able to ping the target outside of the blackout time. When practical, I usually start the first backup of a new target manually at an appropriate time and let the approximately 24-hour schedule take care of it until BlackoutGoodCnt would take effect. And one other thing - you can only control when the backup starts. It will run until the backup completes, even if that goes beyond your time window. -- Les Mikesell lesmikes...@gmail.com -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ 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] backup schedule during specific period of time
On 6/17/2013 10:31 AM, masoodmx wrote: Could anyone please tell me, how can I configure backuppc to set a specific period of time for a host to do backup? i.e I want to have a plan to make backup for a host only between 18:00 and 20:00 Thanks in advance You cannot limit the length or end time of a backup. Once it starts, it will finish no matter how long it takes. What you can do is limit the start times. I would do something like this: $Conf{BlackoutPeriods} = [ { hourBegin = 20.5, hourEnd = 17.5, weekDays = [0, 1, 2, 3, 4, 5, 6], }, ]; This specifies that no backups will be started for this host between 10:30pm and 5:30pm on any day. So assuming an hourly wakeup schedule, the backup could be started at 6pm, 7pm, 8pm, 9pm, or 10pm. If you need to schedule more tightly, I would suggest disabling the automatic schedule and starting the backup manually via a cron job. For example: 00 21 * * 0 /usr/local/BackupPC/bin/BackupPC_serverMesg backup host1 host1 backuppc 1 This starts a full backup of host1 at 21:00 every Sunday. The number at the end specifies the type of backup (1 = Full, 0 = Incremental). backuppc is the name of the BackupPC user and this should be in that user's crontab. And, yes, you DO have to put the host name in there twice. -- Bowie -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ 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] exclude ignores hidden folders
On 6/15/2013 4:26 AM, stompdagg...@yahoo.com wrote: Hello Bowie, On 6/14/2013 4:23 AM, stompdagg...@yahoo.com wrote: Hello, I'm trying to backup my /home folder but exclude the vm folder used by VB, but for some reason when ever I run backup, the folder's content is always backed up. what am I doing wrong? here is the host's config: $Conf{RsyncShareName} = [ '/home', '/root' ]; Ok, so you have two shares, '/home' and '/root'. $Conf{BackupFilesExclude} = { '/home/virt_admin' = [ 'Machines' ], This will do absolutely nothing, since there is no share named '/home/virt_admin' I see, strangely enough I remember that this actually worked and the content of Machines wasn't updated. none the less I'll do this, thanks. '/home/*' = [ '.VirtualBox/Machines', 'Downloads' ] }; This one should work to exclude files/folders with these names under the '/home' share. thing is, it doesn't seems to do that, I still backup this folder's content. Actually, I take that back. I must not have noticed the * at the end. That one won't work either because there is not a share named '/home/*'. The first part of the exclude must either be a share name or '*' if it is to apply to all shares. So in your case, only the following will work: '/root' '/home' '*' Anything else will be ignored. So replace both of your current excludes with this and it should work better: $Conf{BackupFilesExclude} = { '/home' = [ '.VirtualBox/Machines', 'Downloads', '/virt_admin/Machines', ], }; I was able to make it work with the following config: $Conf{RsyncShareName} = [ '/home', '/root' ]; $Conf{BackupFilesExclude} = { '/home' = [ '*/.VirtualBox/Machines', '*/Downloads', 'virt_admin/Machines' ] }; thanks for all the help -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ 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] exclude ignores hidden folders
On 6/17/2013 2:30 PM, stompdagg...@yahoo.com wrote: I was able to make it work with the following config: $Conf{RsyncShareName} = [ '/home', '/root' ]; $Conf{BackupFilesExclude} = { '/home' = [ '*/.VirtualBox/Machines', '*/Downloads', 'virt_admin/Machines' ] }; thanks for all the help I don't think the '*/' is required, but the syntax for the exclusions tends to be picky and depends on the transfer method, so if it's working, you should probably just leave it alone. :) -- Bowie -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev ___ 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/