Backup without updating the access time

Asked by hans van Leeuwen

By creating a backup the files are read and therefore the access time of the files are updated to the backup time.
The disadvantage is that it is not possible any more to retrieve the date and time that the files are really read for the last time (beside the backup).
Is it possible to create a backup without updating the access time to the backup time but to preserve to access time?

Question information

Language:
English Edit question
Status:
Answered
For:
Duplicity Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
edso (ed.so) said :
#1

On 25.09.2015 13:57, hans van Leeuwen wrote:
> New question #271779 on Duplicity:
> https://answers.launchpad.net/duplicity/+question/271779
>
> By creating a backup the files are read and therefore the access time of the files are updated to the backup time.
> The disadvantage is that it is not possible any more to retrieve the date and time that the files are really read for the last time (beside the backup).
> Is it possible to create a backup without updating the access time to the backup time but to preserve to access time?
>

try remounting your filesystem with the 'noatime' mount option to another mount point and backup that instead.

..ede/duply.net

Revision history for this message
hans van Leeuwen (hansvanleeuwen) said :
#2

Remounting is only possible if the filesystem is not used.
It is not practical to stop all uses on the whole filesystem before the backup.

Revision history for this message
edso (ed.so) said :
#3

On 25.09.2015 16:22, hans van Leeuwen wrote:
> Question #271779 on Duplicity changed:
> https://answers.launchpad.net/duplicity/+question/271779
>
> hans van Leeuwen posted a new comment:
> Remounting is only possible if the filesystem is not used.
> It is not practical to stop all uses on the whole filesystem before the backup.
>

try bind mounting it. giving differing mount options can be tricky, but is possible. read here
 https://blog.iwakd.de/systemd-fstab-and-bind-mounts-with-options

..ede/duply.net

Can you help with this problem?

Provide an answer of your own, or ask hans van Leeuwen for more information if necessary.

To post a message you must log in.