Announcement

Collapse
No announcement yet.

btrfs snapshot timestamp does not match system date

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [CONFIGURATION] btrfs snapshot timestamp does not match system date

    I create a btrfs snapshot with the name "snap@2020-05-23-May-1590239805" .
    The last number in he name is seconds since the 'epoch' ,
    Using this number I use 'date' to give me this

    date --date='@1590239805'
    Sat 23 May 2020 09:16:45 AM EDT

    Yet if check the snap date I get this

    ls -ld snap@2020-05-23-May-1590239805
    drwxr-xr-x 1 root root 484 May 22 15:16 snap@2020-05-23-May-1590239805

    What am I missing here ?

    #2
    So I figured out that the timestamp of the snapshot tracks the timestamp of the btrfs volume .
    My snap is of "/Backup2" whose timestamp is
    drwxr-xr-x 1 root root 564 May 22 15:16 /Backup2

    which matches the time stamp of the snapshot

    ls -ld snap@2020-05-23-May-1590239805
    drwxr-xr-x 1 root root 484 May 22 15:16 snap@2020-05-23-May-1590239805

    I guess that makes perfect sense

    Comment


      #3
      Yeah, the snapshots kkep the date of the subvol. When I do mine for backup, I "touch" them to update the time to current time after taking the snapshots.

      Please Read Me

      Comment

      Working...
      X