[Merged] PR#1148: Backup files policy

Merged, abandoned or rejected pull requests are moved here to clear the main Pull Requests forum.
plgarcia
Posts: 310
Joined: Wed Jun 17, 2015 9:47 pm
Location: Near Paris (France)

Re: PR#1148: Backup files policy

Post by plgarcia »

Dear all,
As I promised long ago I will write a bit of documentation, in fact what is to be incorporated in the page you are pointing at.
The backup policy is checked and applied when a project is saved on the only files concerning this project.
There are 2 different behaviors to name the backup files.
- Using extension .FcStd<n>. <n> is a number that rotates every time the project is saved. It is the historical solution and the default behavior of the current version of FreeCad.
- Using extension .<date-time>.FCBak . This is a new feature introduced in version 0.19 of FreeCad.
Note that if the backup name chosen fits with an existing file an extra-<n> is added to avoid conflicts.
In both cases FreeCad keeps the number of files requested and removes the extra oldest files, even if the policy has been changes in the mean time. Note that it may then reduce the number of backups of the project files to fit the configuration applicable at the time the project is saved.
The parameter “use date and FCBak extension” allows to switch from one to the other policy.
The format of the date can be chosen by the user and is stored in parameter Date Format.
The description of the format can be found here in C++ documentation of strftime function here.
http://www.cplusplus.com/reference/ctime/strftime/
I have never changed the wiki and I am not sure how to do, let me check, I believe it is documented somewhere.

Regards
Pascal Garcia
triplus
Veteran
Posts: 9471
Joined: Mon Dec 12, 2011 4:45 pm

Re: PR#1148: Backup files policy

Post by triplus »

Congratulations!
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: PR#1148: Backup files policy

Post by uwestoehr »

plgarcia wrote: Wed Feb 26, 2020 12:34 pm I have never changed the wiki and I am not sure how to do, let me check, I believe it is documented somewhere.
I updated the Wiki today and found this issue:

https://forum.freecadweb.org/viewtopic.php?f=10&t=44211

Could you please have a look.
Last edited by uwestoehr on Fri Mar 20, 2020 11:19 am, edited 1 time in total.
plgarcia
Posts: 310
Joined: Wed Jun 17, 2015 9:47 pm
Location: Near Paris (France)

Re: [Merged] PR#1148: Backup files policy

Post by plgarcia »

Sorry I am not able to find the topic.
Is it this problem of have 2 dots in the file name?
https://forum.freecadweb.org/viewtopic.php?f=10&t=44211

Regards
User avatar
uwestoehr
Veteran
Posts: 4961
Joined: Sun Jan 27, 2019 3:21 am
Location: Germany
Contact:

Re: [Merged] PR#1148: Backup files policy

Post by uwestoehr »

plgarcia wrote: Fri Mar 20, 2020 9:58 am Is it this problem of have 2 dots in the file name?
https://forum.freecadweb.org/viewtopic.php?f=10&t=44211
Yes.
Post Reply