You are not logged in.
I have a bash script (2 actually) using rsync to back up my files to 2 external HDDs, a 250GB drive and a 1TB drive. I have been running them with very minor mods since 2012. Usually if a new instrall or update, Debian sees the drives differently. The drives are the same, fresh Deb installs sometimes renames them.
This afternoon I did a backup to both drives, a sample:
2026·11·01 @ 13:46:55 ~
$ s11bk
Syncing /home
to /media/sector11/disk/S11-Nov/
Syncing /media/5/
to /media/sector11/disk/M5/
Syncing /media/10/
to /media/sector11/disk/M10/
Syncing /media/11/
to /media/sector11/disk/M11/
M10 S11-Nov bookmarks.html scrot_conky.png
M11 Sector11-readme.txt config.openbox.my.old up2.lillydog.usblive.txt
M5 backup.ROOt.txt d11-root
2026·11·01 @ 14:49:23 ~
$home get's a fresh one monthly. Today I wiped 3; - S11-Aug, S11-Sep, S11-Oct.
And I see something STRANGE - I'm being haunted by Halloween, note the date and times in the command lines in the code box above.
Now let's look at the drives, they were BOTH backed up:
2026·11·01 @ 17:06:02 ~
$ ls -l /media/sector11/disk
total 2660
drwxrwxr-x 32 sector11 sector11 4096 Oct 30 16:10 M10
drwxrwxr-x 19 sector11 sector11 4096 Oct 25 10:52 M11
drwxrwxr-x 76 sector11 sector11 12288 Oct 21 17:03 M5
drwxrwxr-x 43 sector11 sector11 20480 Oct 31 13:09 S11-Nov
-rwxrwxr-x 1 sector11 sector11 2049 Jun 21 2013 Sector11-readme.txt
-rwxrwxr-x 1 sector11 sector11 173 Oct 22 2023 backup.ROOt.txt
-rwxrwxr-x 1 sector11 sector11 46355 Jun 16 00:42 bookmarks.html
drwxrwxr-x 5 sector11 sector11 4096 Jul 14 2022 config.openbox.my.old
drwxrwxrwx 18 root root 4096 Oct 10 2023 d11-root
-rwxrwxr-x 1 sector11 sector11 2610523 Oct 22 2023 scrot_conky.png
-rwxrwxr-x 1 sector11 sector11 641 Nov 1 12:42 up2.lillydog.usblive.txt
2026·11·01 @ 17:06:24 ~
$ ls -l /media/sector11/1TB
total 2648
drwxrwxr-x 32 sector11 sector11 4096 Oct 30 16:10 M10
drwxrwxr-x 19 sector11 sector11 4096 Oct 25 10:52 M11
drwxrwxr-x 76 sector11 sector11 4096 Oct 21 17:03 M5
drwxrwxr-x 43 sector11 sector11 20480 Oct 31 13:09 S11-Nov
-rwxrwxr-x 1 sector11 sector11 2052 Jul 28 18:01 Sector11-readme.txt
-rwxrwxr-x 1 sector11 sector11 173 Oct 22 2023 backup.ROOt.txt
-rwxrwxr-x 1 sector11 sector11 46355 Jun 16 00:42 bookmarks.html
drwxrwxr-x 5 sector11 sector11 4096 Mar 21 2026 config.openbox.my.old
-rwxrwxr-x 1 sector11 sector11 2610523 Oct 22 2023 scrot_conky.png
-rwxrwxr-x 1 sector11 sector11 661 Oct 21 2023 up2.lillydog.usblive.txt
2026·11·01 @ 17:06:39 ~
$ These two were created TODAY!
$ ls -l /media/sector11/disk
drwxrwxr-x 43 sector11 sector11 20480 Oct 31 13:09 S11-Nov
2026·11·01 @ 17:06:24 ~
$ ls -l /media/sector11/1TB
drwxrwxr-x 43 sector11 sector11 20480 Oct 31 13:09 S11-NovWHY DO THEY HAVE YESTERDAY'S DATE?
BUT "stat" does not lie:
2026·11·01 @ 17:14:43 ~
$ stat /media/sector11/disk/S11-Nov
File: /media/sector11/disk/S11-Nov
{snip}
Access: 2026-11-01 16:10:48.647789801 -0300
Modify: 2026-10-31 13:09:18.660917483 -0300
Change: 2026-11-01 16:10:48.623790153 -0300
Birth: 2026-11-01 12:34:58.088219931 -0300
2026·11·01 @ 17:15:00 ~
$ stat /media/sector11/1TB/S11-Nov
File: /media/sector11/1TB/S11-Nov
{snip]
Access: 2026-11-01 16:11:43.286988016 -0300
Modify: 2026-10-31 13:09:18.660917483 -0300
Change: 2026-11-01 16:11:43.262988369 -0300
Birth: 2026-11-01 13:19:21.784350805 -0300
2026·11·01 @ 17:15:20 ~
$ Any thoughts - other than; You are haunted. ![]()
Beardog Linux, hosted by SoxDog
(Debian 13 - X11)
Still a Conky 1.9er at heart.
Offline
Argentina do the Daylight Saving Time shuffle?
You run that backup script before the computer clock could sync?
You must unlearn what you have learned.
-- yoda
Offline
Argentina do the Daylight Saving Time shuffle?
You run that backup script before the computer clock could sync?
1st Q: Well, if it did, which it doesn't, that doesn't explain the correct time and date in the terminal or the "stat" view.
2nd Q: I was up at ±09:00, so 3 plus hours before running the script.
NOTE: Only once did Argentina change it's time in the last 27 years. People rebelled!
Beardog Linux, hosted by SoxDog
(Debian 13 - X11)
Still a Conky 1.9er at heart.
Offline
Did a test .... made a test script: Oct31
#!/bin/bash
## 12 Jan 2012
## 23 Feb 2012 changed to 'rsync' from 'cp'
MON=%b
TARGET="/media/5/TEST-$(date +"$MON")"
echo " Syncing ~/SOX"
echo " to $TARGET/"
rsync -avh --progress /home/sector11/SOX > "/dev/null" "$TARGET"
# echo ""
# ls -l /media/5/OCT-"$TARGET"/
# echo ""
# stat /home/sector11/OCT-"$TARGET"/SOX
exitand it worked perfect:
2026·11·01 @ 18:36:55 ~
$ Oct31
Syncing ~/SOX
to /media/5/TEST-Nov/
2026·11·01 @ 18:37:03 ~
$ stat /media/5/TEST-Nov
File: /media/5/TEST-Nov
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 8,3 Inode: 12189697 Links: 3
Access: (0775/drwxrwxr-x) Uid: ( 1000/sector11) Gid: ( 1000/sector11)
Access: 2026-11-01 18:37:03.225558673 -0300
Modify: 2026-11-01 18:37:03.225558673 -0300
Change: 2026-11-01 18:37:03.225558673 -0300
Birth: 2026-11-01 18:37:03.225558673 -0300
2026·11·01 @ 18:37:45 ~
$ stat /media/5/TEST-Nov/SOX
File: /media/5/TEST-Nov/SOX
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 8,3 Inode: 12189698 Links: 3
Access: (0775/drwxrwxr-x) Uid: ( 1000/sector11) Gid: ( 1000/sector11)
Access: 2026-11-01 18:38:20.012419361 -0300
Modify: 2026-09-19 23:00:44.182627497 -0300
Change: 2026-11-01 18:37:03.289557722 -0300
Birth: 2026-11-01 18:37:03.225558673 -0300
2026·11·01 @ 18:38:45 ~
$ The lines in the original file:
#!/bin/bash
## 12 Jan 2012
## 23 Feb 2012 changed to 'rsync' from 'cp'
MON=%b
TARGET="/media/sector11/disk/S11-$(date +"$MON")"
echo " Syncing /home"
echo " to $TARGET/"
rsync -avh --progress --delete --delete-excluded --exclude-from '/home/sector11/bin/rsync_home_exclude.txt' /home/sector11/ > "/dev/null" "$TARGET"Beardog Linux, hosted by SoxDog
(Debian 13 - X11)
Still a Conky 1.9er at heart.
Offline