Results 1 to 3 of 3

Thread: btrfs snapshot timestamp does not match system date

  1. Back To Top    #1
    Newbie
    Join Date
    Apr 2020
    Posts
    4
    Threads
    3
    Local Date
    Jun 1st 2020
    Local Time
    08:42 AM

    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. Back To Top    #2
    Newbie
    Join Date
    Apr 2020
    Posts
    4
    Threads
    3
    Local Date
    Jun 1st 2020
    Local Time
    08:42 AM
    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

  3. Back To Top    #3
    Ascendant oshunluvr's Avatar
    Join Date
    Feb 2010
    Location
    New Bern, NC USA
    Posts
    10,660
    Threads
    435
    Local Date
    Jun 1st 2020
    Local Time
    08:42 AM
    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
    Be not the first by whom the new are tried, Nor yet the last to lay the old aside. - Alexander Pope, An Essay on Criticism, 1711

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •