SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
The infamous "backuppc_link got error -4"
Author Message
Post The infamous "backuppc_link got error -4" 
Hey guys! Doing my best to get up to speed with Backuppc, pretty impressive so far. Logs are filled with “backuppc_link got error -4” errors, and from the research I have done it seems that because my TopDir (/mnt/sdb1) and the cpool location (/home/users/backuppc/data/cpool) are on different filesystems, hard links will obviously fail. Is the answer to soft link “ln –s /mnt/sdb1 /home/users/backuppc/topdir” and change TopDir in config.pl to the “/home/users/backuppc/topdir”? It can’t be that easy, right?


Thanks!
Jim

Post The infamous "backuppc_link got error -4" 
If you haven't stumbled on it yet, read this:
http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Change_archive_directory

Particularly if you have a version prior to 3.2, look in the section
"Changing the name of the archive directory".

A.

On Fri, Jan 6, 2012 at 10:59 AM, Jim Durand <jdurand < at > hrsg.ca> wrote:
Hey guys! Doing my best to get up to speed with Backuppc, pretty impressive
so far. Logs are filled with “backuppc_link got error -4” errors, and from
the research I have done it seems that because my TopDir (/mnt/sdb1) and the
cpool location (/home/users/backuppc/data/cpool) are on different
filesystems, hard links will obviously fail. Is the answer to soft link “ln
–s /mnt/sdb1 /home/users/backuppc/topdir” and change TopDir in config.pl to
the “/home/users/backuppc/topdir”? It can’t be that easy, right?





Thanks!

Jim


------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List:    https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki:    http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/




--
"The universe is probably littered with the one-planet graves of
cultures which made the sensible economic decision that there's no
good reason to go into space--each discovered, studied, and remembered
by the ones who made the irrational decision." - Randall Munroe

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post The infamous "backuppc_link got error -4" 
On Fri, Jan 6, 2012 at 11:52 AM, Steve <leperas < at > gmail.com> wrote:
If you haven't stumbled on it yet, read this:
http://sourceforge.net/apps/mediawiki/backuppc/index.php?title=Change_archive_directory

Particularly if you have a version prior to 3.2, look in the section
"Changing the name of the archive directory".

A.

Apologies about the top-post, was a goofup on my part...was in reply
to Jim's quesiton below:

On Fri, Jan 6, 2012 at 10:59 AM, Jim Durand <jdurand < at > hrsg.ca> wrote:
Hey guys! Doing my best to get up to speed with Backuppc, pretty impressive
so far. Logs are filled with “backuppc_link got error -4” errors, and from
the research I have done it seems that because my TopDir (/mnt/sdb1) and the
cpool location (/home/users/backuppc/data/cpool) are on different
filesystems, hard links will obviously fail. Is the answer to soft link “ln
–s /mnt/sdb1 /home/users/backuppc/topdir” and change TopDir in config.pl to
the “/home/users/backuppc/topdir”? It can’t be that easy, right?

A.

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post The infamous "backuppc_link got error -4" 
On Fri, Jan 6, 2012 at 9:59 AM, Jim Durand <jdurand < at > hrsg.ca> wrote:
Hey guys! Doing my best to get up to speed with Backuppc, pretty impressive
so far. Logs are filled with “backuppc_link got error -4” errors, and from
the research I have done it seems that because my TopDir (/mnt/sdb1) and the
cpool location (/home/users/backuppc/data/cpool) are on different
filesystems, hard links will obviously fail. Is the answer to soft link “ln
–s /mnt/sdb1 /home/users/backuppc/topdir” and change TopDir in config.pl to
the “/home/users/backuppc/topdir”? It can’t be that easy, right?


What version are you running and how did you install? Pre-3.2
versions don't let you change TopDir after the initial install (which
has already been done in distribution-packaged .deb/.rpm versions).
If you install from the sourceforge tarball, the install script lets
you pick the location - and 3.2 lets you change Topdir after the
install.

--
Les Mikesell
lesmikesell < at > gmail.com

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual
desktops for less than the cost of PCs and save 60% on VDI infrastructure
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
List: https://lists.sourceforge.net/lists/listinfo/backuppc-users
Wiki: http://backuppc.wiki.sourceforge.net
Project: http://backuppc.sourceforge.net/

Post The infamous "backuppc_link got error -4" 
On Fri, Jan 6, 2012 at 10:59 PM, Jim Durand <jdurand < at > hrsg.ca ([email]jdurand < at > hrsg.ca[/email])> wrote:

Hey guys! Doing my best to get up to speed with Backuppc, pretty impressive so far. Logs are filled with “backuppc_link got error -4” errors, and from the research I have done it seems that because my TopDir (/mnt/sdb1) and the cpool location (/home/users/backuppc/data/cpool) are on different filesystems, hard links will obviously fail. Is the answer to soft link “ln –s /mnt/sdb1 /home/users/backuppc/topdir” and change TopDir in config.pl to the “/home/users/backuppc/topdir”? It can’t be that easy, right?


 
My recommendation is to not change the TopDir spec even for those version of BPC that allow it.

My approach is to have a dedicated filesystem for BPC's data, and ideally this should be one that allows for "live" in-use maintenance - expansion, disk swaps. LVM being a good example in low-end environments.

Just bind mount in fstab the partition you want to use for storage in the place where backuppc wants it (should be /var/lib/backuppc with the debian family packages).

Or put a symlink there pointing to the location you want, works just as well, as long as you remember it's "just" a symlink for any other tools you use that need to traverse it - IMO bind mounts are "lower level" and thus more transparent to user-space tools.

If you do this before the install, everything should land in the right place and get the right permissions. As you've seen the critical thing is that the pool/cpool/pc directories must all be in the same filesystem so
hardlinks can work and with versions before 3.2 you can't change the TOPDIR location after the initial setup

Don't be afraid to wipe and start over a few times while you're getting to know BPC, it's good practice. Note that once BPC is up and running you won't have to pay too much attention to it and you'll likely forget much of what you learned at this stage, so document everything you do and why you did it,

--------------------

I've also taken this a step further and moved my config and log folders to below TOPDIR so everything related to BackupPC is self-contained to the one filesystem. Note that as far as BPC is concerned everything appears to still remain in the expected filesystem locations, it's not aware of the bind mounts and/or symlink magic.

This allows the whole shebang to be easily transferred to a new host for maintenance/upgrade/disaster recovery situations, doesn't need to be the underlying OS, just (roughly) the same version of BPC - I've done testing moving from our production server (CentOS) to a "temporary restore server" on a generic desktop running both Ubuntu and even via a Live-CD-only Grml boot disc - (Grml is a system rescue CD package which bundles BackupPC) and everything "just worked".

To make this even easier, my LVM-over-RAID filesystem is self-contained in an external drive housing connected via eSata.

====================
Note that the latter bit isn't common, but the top AFAIK is normal practice. I'm a relative noob here, so if you read anything from the more experienced users posted here that contradicts anything I say, follow their advice.

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB