excluding .git, .svn, &c from rdiff-backup

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

excluding .git, .svn, &c from rdiff-backup

Brice Burgess
I have a relatively simple rdiff backup script which backs up the
`/home` directory to `/backups/test-target`.

|===

#!/bin/sh
rdiff-backup \
     --exclude '**/.git' \
     --exclude '**/.svn' \
     --exclude '**/.ssh' \
     --include /home \
     --exclude / \
     --print-statistics \
     / /backups/test-target

===
|

I want to exclude any .git, .svn, and .ssh directories encountered.
Unfortunately the above does not appear to be working to accomplish this
(.git directories are included in the backup). Any ideas?

running rdiff-backup 1.2.8 (debian wheezy)

Many thanks.

~ Brice



_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: excluding .git, .svn, &c from rdiff-backup

Dominic Raferd-3
On 25/04/2014 03:48, Brice Burgess wrote:
I have a relatively simple rdiff backup script which backs up the 
`/home` directory to `/backups/test-target`.

|===

#!/bin/sh
rdiff-backup \
     --exclude '**/.git' \
     --exclude '**/.svn' \
     --exclude '**/.ssh' \
     --include /home \
     --exclude / \
     --print-statistics \
     / /backups/test-target

===
|

I want to exclude any .git, .svn, and .ssh directories encountered. 
Unfortunately the above does not appear to be working to accomplish this 
(.git directories are included in the backup). Any ideas?

running rdiff-backup 1.2.8 (debian wheezy)

Many thanks.

~ Brice



_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki


Try adding ** immediately after .git, .svn and .ssh.

Dominic
--
TimeDicer: Free File Recovery from Whenever

_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: excluding .git, .svn, &c from rdiff-backup

Miroslav Geisselreiter
In reply to this post by Brice Burgess
Hi Brice,

try this:
#!/bin/sh
rdiff-backup \
     --exclude '**.git' \
     --exclude '**.svn' \
     --exclude '**.ssh' \
     --print-statistics \
     /home/ /backups/test-target/

Mirek.

Dne 25.4.2014 4:48, Brice Burgess napsal(a):

> I have a relatively simple rdiff backup script which backs up the
> `/home` directory to `/backups/test-target`.
>
> |===
>
> #!/bin/sh
> rdiff-backup \
>     --exclude '**/.git' \
>     --exclude '**/.svn' \
>     --exclude '**/.ssh' \
>     --include /home \
>     --exclude / \
>     --print-statistics \
>     / /backups/test-target
>
> ===
> |
>
> I want to exclude any .git, .svn, and .ssh directories encountered.
> Unfortunately the above does not appear to be working to accomplish
> this (.git directories are included in the backup). Any ideas?
>
> running rdiff-backup 1.2.8 (debian wheezy)
>
> Many thanks.
>
> ~ Brice
>
>
>
> _______________________________________________
> rdiff-backup-users mailing list at [hidden email]
> https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
> Wiki URL:
> http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
>


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: excluding .git, .svn, &c from rdiff-backup

Miroslav Geisselreiter
Yes, .git will be removed from existing backups.

Mirek.

25.4.2014 17:10, Brice Burgess wrote:

> Hi and thanks. Will try for the next scheduling. Do you know if the
> .git directories will be removed from the existing backups -- or
> should I remove and start with a fresh base/full (non incremental)
> backup?
>
> ~ Brice
>
>
> On 04/25/2014 08:22 AM, Miroslav Geisselreiter wrote:
>> Hi Brice,
>>
>> try this:
>> #!/bin/sh
>> rdiff-backup \
>>     --exclude '**.git' \
>>     --exclude '**.svn' \
>>     --exclude '**.ssh' \
>>     --print-statistics \
>>     /home/ /backups/test-target/
>>
>> Mirek.
>>
>> Dne 25.4.2014 4:48, Brice Burgess napsal(a):
>>> I have a relatively simple rdiff backup script which backs up the
>>> `/home` directory to `/backups/test-target`.
>>>
>>> |===
>>>
>>> #!/bin/sh
>>> rdiff-backup \
>>>     --exclude '**/.git' \
>>>     --exclude '**/.svn' \
>>>     --exclude '**/.ssh' \
>>>     --include /home \
>>>     --exclude / \
>>>     --print-statistics \
>>>     / /backups/test-target
>>>
>>> ===
>>> |
>>>
>>> I want to exclude any .git, .svn, and .ssh directories encountered.
>>> Unfortunately the above does not appear to be working to accomplish
>>> this (.git directories are included in the backup). Any ideas?
>>>
>>> running rdiff-backup 1.2.8 (debian wheezy)
>>>
>>> Many thanks.
>>>
>>> ~ Brice
>>>
>>>
>>>
>>> _______________________________________________
>>> rdiff-backup-users mailing list at [hidden email]
>>> https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
>>> Wiki URL:
>>> http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
>>>
>>
>>
>> _______________________________________________
>> rdiff-backup-users mailing list at [hidden email]
>> https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
>> Wiki URL:
>> http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
>


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
Reply | Threaded
Open this post in threaded view
|

Re: excluding .git, .svn, &c from rdiff-backup

Adrian A. Baumann-2
Not quite. The new backups will look exactly like you've deleted .git
and then taken a backup - i.e., the ignored files/directories will be in
the backup increments before the configuration change and won't be in
the ones after. In time, they will be removed when you do a
--remove-older-than [time].

Ade

On 28/04/2014 09:31, Miroslav Geisselreiter wrote:

> Yes, .git will be removed from existing backups.
>
> Mirek.
>
> 25.4.2014 17:10, Brice Burgess wrote:
>> Hi and thanks. Will try for the next scheduling. Do you know if the
>> .git directories will be removed from the existing backups -- or
>> should I remove and start with a fresh base/full (non incremental)
>> backup?
>>
>> ~ Brice
>>
>>
>> On 04/25/2014 08:22 AM, Miroslav Geisselreiter wrote:
>>> Hi Brice,
>>>
>>> try this:
>>> #!/bin/sh
>>> rdiff-backup \
>>>     --exclude '**.git' \
>>>     --exclude '**.svn' \
>>>     --exclude '**.ssh' \
>>>     --print-statistics \
>>>     /home/ /backups/test-target/
>>>
>>> Mirek.
>>>
>>> Dne 25.4.2014 4:48, Brice Burgess napsal(a):
>>>> I have a relatively simple rdiff backup script which backs up the
>>>> `/home` directory to `/backups/test-target`.
>>>>
>>>> |===
>>>>
>>>> #!/bin/sh
>>>> rdiff-backup \
>>>>     --exclude '**/.git' \
>>>>     --exclude '**/.svn' \
>>>>     --exclude '**/.ssh' \
>>>>     --include /home \
>>>>     --exclude / \
>>>>     --print-statistics \
>>>>     / /backups/test-target
>>>>
>>>> ===
>>>> |
>>>>
>>>> I want to exclude any .git, .svn, and .ssh directories encountered.
>>>> Unfortunately the above does not appear to be working to accomplish
>>>> this (.git directories are included in the backup). Any ideas?
>>>>
>>>> running rdiff-backup 1.2.8 (debian wheezy)
>>>>
>>>> Many thanks.
>>>>
>>>> ~ Brice
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> rdiff-backup-users mailing list at [hidden email]
>>>> https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
>>>> Wiki URL:
>>>> http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
>>>>
>>>
>>>
>>> _______________________________________________
>>> rdiff-backup-users mailing list at [hidden email]
>>> https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
>>> Wiki URL:
>>> http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
>>
>
>
> _______________________________________________
> rdiff-backup-users mailing list at [hidden email]
> https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
> Wiki URL:
> http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki
>
>


_______________________________________________
rdiff-backup-users mailing list at [hidden email]
https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users
Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki

smime.p7s (5K) Download Attachment