Deprecated: __autoload() is deprecated, use spl_autoload_register() instead in /home/pbuc/public_html/forum/mods/ext_phorummail/ezc/Base/src/ezc_bootstrap.php on line 36

Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; KeyCAPTCHA_CLASS has a deprecated constructor in /home/pbuc/public_html/forum/mods/keycaptcha/keycaptcha.php on line 108
Deleting a folder from all backup sets
Welcome! » Log In » Create A New Profile

Deleting a folder from all backup sets

Posted by Anonymous 
Deleting a folder from all backup sets
November 25, 2014 01:05PM
Hi all!

I”m trying to figure out the best way to remove a particular folder from all backup sets.

So I have a backup of a server that contains the folder /home/something/massivespacehog that is no longer required but it’s present in 30 daily and 14 monthly backup sets.

I have deleted the folder from the server that is being backed up but it’s obviously still on the backup server and I don’t want to change my rsnapshot configuration.

Is there a “best practice” way of pruning this folder from all my backup sets?

Thanks,
Chris.

--
chrispyfur.net

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Deleting a folder from all backup sets
November 25, 2014 01:14PM
On 25 November 2014 at 10:03, Chris Tebb <chris < at > chrispyfur.net ([email]chris < at > chrispyfur.net[/email])> wrote:
[quote]Hi all!

I&rdquo;m trying to figure out the best way to remove a particular folder from all backup sets.

So I have a backup of a server that contains the folder /home/something/massivespacehog that is no longer required but it&rsquo;s present in 30 daily and 14 monthly backup sets.

I have deleted the folder from the server that is being backed up but it&rsquo;s obviously still on the backup server and I don&rsquo;t want to change my rsnapshot configuration.

Is there a &ldquo;best practice&rdquo; way of pruning this folder from all my backup sets?
[/quote]

don&#39;t know if there&#39;s a "best practice" but I think something like this should do the work:

rm -rf /backup-path/daily.{0..29}/home/something/massivespacehog

rm -rf /backup-path/monthly.{0..29}/home/something/massivespacehog

--
Gabriel.
Deleting a folder from all backup sets
November 25, 2014 04:09PM
Hallo Gabriel Davini,

Am Dienstag, 25. November 2014 14:12 schrieb Gabriel Davini:
[quote]On 25 November 2014 at 10:03, Chris Tebb <chris < at > chrispyfur.net>
[/quote]wrote:
[quote][quote]Hi all!

I"m trying to figure out the best way to remove a particular
folder from all backup sets.

So I have a backup of a server that contains the folder
/home/something/massivespacehog that is no longer required but
it's present in 30 daily and 14 monthly backup sets.
...
[/quote]rm -rf /backup-path/daily.{0..29}/home/something/massivespacehog

rm -rf
/backup-path/monthly.{0..29}/home/something/massivespacehog
[/quote]
I used that sometimes and it worked.

--
Herzliche Grüße!
Rolf Muth
Meine Adressen dürfen nicht für Werbung verwendet werden!
OpenPGP Public Key:
http://pgp.uni-mainz.de:11371/pks/lookup?op=index&search=0x5544C89A

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Deleting a folder from all backup sets
November 25, 2014 09:36PM
I freaking love bash.

$ echo {daily,weekly,monthly}{0..9}
daily0 daily1 daily2 daily3 daily4 daily5 daily6 daily7 daily8 daily9 weekly0 weekly1 weekly2 weekly3 weekly4 weekly5 weekly6 weekly7 weekly8 weekly9 monthly0 monthly1 monthly2 monthly3 monthly4 monthly5 monthly6 monthly7 monthly8 monthly9

On Tue, Nov 25, 2014 at 8:01 AM, Rolf Muth <rolf.muth < at > web.de ([email]rolf.muth < at > web.de[/email])> wrote:
[quote]Hallo Gabriel Davini,

Am Dienstag, 25. November 2014 14:12 schrieb Gabriel Davini:
[quote]On 25 November 2014 at 10:03, Chris Tebb <chris < at > chrispyfur.net ([email]chris < at > chrispyfur.net[/email])>
[/quote]wrote:
[quote][quote]Hi all!

I"m trying to figure out the best way to remove a particular
folder from all backup sets.

So I have a backup of a server that contains the folder
/home/something/massivespacehog that is no longer required but
it&#39;s present in 30 daily and 14 monthly backup sets.
...
[/quote]rm -rf /backup-path/daily.{0..29}/home/something/massivespacehog

rm -rf
/backup-path/monthly.{0..29}/home/something/massivespacehog
[/quote]
I used that sometimes and it worked.

--
Herzliche Grüße!
Rolf Muth
Meine Adressen dürfen nicht für Werbung verwendet werden!
OpenPGP Public Key:
[url=http://pgp.uni-mainz.de:11371/pks/lookup?op=index&search=0x5544C89A]http://pgp.uni-mainz.de:11371/pks/lookup?op=index&search=0x5544C89A[/url]

------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
[url=http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk]http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk[/url]
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net ([email]rsnapshot-discuss < at > lists.sourceforge.net[/email])
[url=https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss]https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss[/url]

[/quote]

--
Paul Mackinney
Systems & Quality Manager
O.N. Diagnostics, LLC
2150 Shattuck Ave. Suite 610, Berkeley, CA 94704
510-204-0688 (phone) | 510-356-4349 (fax)
_____________________________________________
If you receive this message in error, please delete it immediately. This message may contain information that is privileged, confidential and exempt from disclosure and dissemination under applicable law.
Sorry, only registered users may post in this forum.

Click here to login