* V6 Backup long pathnames

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
avatar
bloodbrotheruk
Gold
Posts: 23
Joined: 27 Mar 2012 23:52
Family Historian: V7

V6 Backup long pathnames

Post by bloodbrotheruk » 26 Dec 2014 17:27

/*** Caveat - not thinking this is a problem with the V6 Backup very large files (12034) specific instance, but worth mentioning with backups as a topic as I believe represents good working practice ***/

I have also found file path length can have an adverse effect on backups in the past.

By path length that is to say a file called abc.txt (6 characters) if located in, for example, C:\Users\Phil\Documents\Family Historian Projects\Family Historian Sample Project\Family Historian Sample Project.fh_data\Media\Certificates\abc.txt is actually 148 characters in length.
If this were to be backed up then in a similar location it can be very easy to get to over 255 characters in length.

Whilst theoretically Windows Vista/7/8 can handle such long strings, a 255 character limit is still hard coded into the registry and this can sometimes crop up making copying and or deleting a file almost impossible.

(windows will allow a save to create a 300 character string, then refuse to delete the file as it exceeds 255! - a common issue at MS Technet)

I use a small free app (portable so no need to install) called TLPD which can help identify these long paths and ultimately let you shorten them prior to making a backup.
it can be found at http://sourceforge.net/projects/tlpd/

as i say, i dont think this is nescessarily relevant to the OP's specific occurance, however I thought i'd add to this thread as it is always something worth thinking about in the realms of backups

User avatar
jimlad68
Megastar
Posts: 911
Joined: 18 May 2014 21:01
Family Historian: V7
Location: Sheffield, Yorkshire, UK (but from Lancashire)
Contact:

Re: V6 Backup long pathnames

Post by jimlad68 » 26 Dec 2014 20:46

bloodbrotheruk - good point, FH does create rather long pathnames which means I tend to be a little more crypic than I would otherwise be, especially with my test and none main projects.

Another good and more flexible long filename checker here, also standalone (I incorporate mine into Liberkey)
http://dcsoft.com/products/longff/longff.htm
Jim Orrell - researching: see - but probably out of date https://gw.geneanet.org/jimlad68

avatar
CarlDavidson
Newbie
Posts: 1
Joined: 11 Feb 2017 11:58
Family Historian: V6

Re: V6 Backup long pathnames

Post by CarlDavidson » 11 Feb 2017 12:00

Hello there,

I´d recommend that you use Long Path Tool, it will enable you to fix the problem in a click.... I´ve used it several times. Highly recommendable

The reason why you´re struggling is becase Microsoft has a core set of application programming interfaces (APIs) that programmers can use to interact with applications in the Windows operating system. These programming interfaces are often referred to as the Windows API. The Windows API imposes a maximum filename length such that a filename, including the file path to get to the file, can't exceed between 255-260 characters.

User avatar
tatewise
Megastar
Posts: 27088
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: V6 Backup long pathnames

Post by tatewise » 11 Feb 2017 13:53

FYI: To be precise the Windows path limit is 260 characters, which includes the C:\ at the beginning, the folder path, filename & extension, and null character at the end. So when the C:\ drive and terminating null are discounted that leaves 256 characters for the actual pathname.

There are some technically tricky workarounds, and Windows 10 now allows the limit to be relaxed, BUT only if all your applications such as FH and AS can handle those longer file paths.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

Post Reply