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 no longer required backup intervals
Welcome! » Log In » Create A New Profile

Deleting no longer required backup intervals

Posted by Anonymous 
Deleting no longer required backup intervals
December 04, 2014 04:54PM
Hi, we had out monthly retain set to 24 but we’ve decided to go back to 12, can I simply:

/bin/rm -rf /snapshots/monthly.13/

For all months outside of 12 without affecting the rest of the backups?

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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Deleting no longer required backup intervals
December 04, 2014 05:00PM
On 4 December 2014 at 13:52, Chris Tebb <chris < at > chrispyfur.net ([email]chris < at > chrispyfur.net[/email])> wrote:
[quote]Hi, we had out monthly retain set to 24 but we&rsquo;ve decided to go back to 12, can I simply:

/bin/rm -rf /snapshots/monthly.13/

For all months outside of 12 without affecting the rest of the backups?

[/quote]

Yes, because of hard links.

You can try this to figure out how it works:

echo "echo hello wolrd" > file1.sh

ln file1.sh file2.sh
ls -li file1.sh file2.sh # inode number is the same!
rm file1.sh
cat file2.sh

--
Gabriel.
Deleting no longer required backup intervals
December 04, 2014 05:56PM
On 5/12/2014 3:52 AM, Chris Tebb wrote:
[quote]Hi, we had out monthly retain set to 24 but we’ve decided to go back to 12, can I simply:

/bin/rm -rf /snapshots/monthly.13/

For all months outside of 12 without affecting the rest of the backups?
[/quote]
Almost, you have 0 to 11 to keep ... ;-)

for x in $(seq 12 23);do rm -rf /snapshots/monthly.$x;done

However, depending on what you have saved, each extra month's backup
might be quite small and removing the older ones might not make much
difference to the space being used.

The /one/ potential problem with rsnapshot is that you only have one
copy of each file (based on original file location). All extra copies
of the same file are just hard linked for the snapshot. If you lose the
original file, then you only have one copy on the rsnapshot set to
possibly get it back.

My solution to the problem includes, but isn't limited to, having two
completely separate rsnapshot backup machines -- each backing up a
number of servers. Each backup is offset in time, so generally the
hourly backups occur twice, 30 minutes apart. This doubles the
viability of the backups and means that more snapshots are available.

Cheers
A.

------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Deleting no longer required backup intervals
December 04, 2014 07:52PM
[quote]The /one/ potential problem with rsnapshot is that you only have one
copy of each file...
[/quote]

Now you&#39;re talking about backing up your backup :-)

Our solution to this is monthly backup to data warehouse in different geographical location. They offer sftp & rsync access, no shell. Since our home directory on the remote site is built on ZFS, I just rsync my weekly.0 snapshot (with extra excludes), it finishes about 5T of source data in 18-24 hours.

I keep checking cost against a cloud service like AWS, but their transfer charges make the current system look better. We&#39;re paying $500 per month for 5T, with unlimited transfer, at AWS I&#39;d pay for a server instance, a storage instance, all transfers would be metered, and I&#39;d have to administer and monitor it.

I&#39;m be interested in hearing what other people are doing for offsite network backup.

PM

On Thu, Dec 4, 2014 at 9:37 AM, Andrew McGlashan <andrew.mcglashan < at > affinityvision.com.au ([email]andrew.mcglashan < at > affinityvision.com.au[/email])> wrote:
[quote]On 5/12/2014 3:52 AM, Chris Tebb wrote:
[quote]Hi, we had out monthly retain set to 24 but we’ve decided to go back to 12, can I simply:

/bin/rm -rf /snapshots/monthly.13/

For all months outside of 12 without affecting the rest of the backups?
[/quote]
Almost, you have 0 to 11 to keep ... ;-)

for x in $(seq 12 23);do rm -rf /snapshots/monthly.$x;done

However, depending on what you have saved, each extra month&#39;s backup
might be quite small and removing the older ones might not make much
difference to the space being used.

The /one/ potential problem with rsnapshot is that you only have one
copy of each file (based on original file location).  All extra copies
of the same file are just hard linked for the snapshot.  If you lose the
original file, then you only have one copy on the rsnapshot set to
possibly get it back.

My solution to the problem includes, but isn&#39;t limited to, having two
completely separate rsnapshot backup machines -- each backing up a
number of servers.  Each backup is offset in time, so generally the
hourly backups occur twice, 30 minutes apart.  This doubles the
viability of the backups and means that more snapshots are available.

Cheers
A.

------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk]http://pubads.g.doubleclick.net/gampad/clk?id=164703151&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.
Deleting no longer required backup intervals
December 04, 2014 08:38PM
On 5/12/2014 6:43 AM, Paul Mackinney wrote:
[quote][quote]The /one/ potential problem with rsnapshot is that you only have one
copy of each file...
[/quote]
Now you're talking about backing up your backup :-)

Our solution to this is monthly backup to data warehouse in different
geographical location. They offer sftp & rsync access, no shell. Since
our home directory on the remote site is built on ZFS, I just rsync my
weekly.0 snapshot (with extra excludes), it finishes about 5T of source
data in 18-24 hours.
[/quote]
I used to have multiple drives [3 at a time] with RAID1 mirror, I would
shutdown the machine, remove a drive and replace it an older drive --
add the replaced drive back in to the mirror, let it sync up fully and
repeat.

The drive that was removed went to off-site storage and stayed there for
a few cycles. I was using 6 drives all up and there would always be 3
off-site (1 in transit when swapping).

My plan is to have one of the two backup servers located across town.

Right now I am using software RAID1 with just 2 drives per mirror on
fully encrypted drives with lvm2, it's working very well and I've got
plenty of storage available (4x 4TB drives per machine).

A little further down the track I expect to be moving everything to a
FreeBSD setup (or similar, perhaps SmartOS) with ZFS to protect against
possible bit rot or other silent corruptions.

Cheers
A.

------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Deleting no longer required backup intervals
December 04, 2014 08:44PM
On Fri, Dec 05, 2014 at 04:37:46AM +1100, Andrew McGlashan (andrew.mcglashan < at > affinityvision.com.au) wrote:

[quote]for x in $(seq 12 23);do rm -rf /snapshots/monthly.$x;done
[/quote]
If you're using Linux or other os with bash, even easier is

rm -rf /snapshots/monthly.{12..23}

--
Tapani Tarvainen

------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Deleting no longer required backup intervals
December 04, 2014 08:44PM
On Thu, Dec 04, 2014 at 11:43:11AM -0800, Paul Mackinney (paul.mackinney < at > ondiagnostics.com) wrote:

[quote][quote]The /one/ potential problem with rsnapshot is that you only have one
copy of each file...
[/quote]
Now you're talking about backing up your backup :-)
[/quote]
Yes. And that is good. :-)

[quote]Our solution to this is monthly backup to data warehouse in different
geographical location.
[/quote]
I have a machine of my own at a different location (admittedly only
about 3km away, so I'm still vulnerable to a big enough asteroid or...)

[quote]I just rsync my weekly.0 snapshot (with extra excludes)
[/quote]
Likewise, but daily.

--
Tapani Tarvainen

------------------------------------------------------------------------------
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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
rsnapshot-discuss mailing list
rsnapshot-discuss < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rsnapshot-discuss
Sorry, only registered users may post in this forum.

Click here to login