Sample Header Ad - 728x90

check files difference with multiple folders

0 votes
1 answer
41 views
I would like to check when a file differ inside a backup system using snapshots. I have several folders with the same architecture inside ls -1 .snapshot 4-hourly.2024-04-14_0405 4-hourly.2024-04-14_0805 4-hourly.2024-04-14_1205 4-hourly.2024-04-14_1605 4-hourly.2024-04-14_2005 4-hourly.2024-04-15_0405 4-hourly.2024-04-15_0805 4-hourly.2024-04-15_1205 daily.2024-04-08_0010 daily.2024-04-09_0010 daily.2024-04-10_0010 daily.2024-04-11_0010 daily.2024-04-12_0010 daily.2024-04-13_0010 daily.2024-04-14_0010 daily.2024-04-15_0010 monthly.2024-01-01_0020 monthly.2024-02-01_0020 monthly.2024-03-01_0020 monthly.2024-04-01_0020 weekly.2024-02-25_0015 weekly.2024-03-03_0015 weekly.2024-03-10_0015 weekly.2024-03-17_0015 weekly.2024-03-24_0015 weekly.2024-03-31_0015 weekly.2024-04-07_0015 weekly.2024-04-14_0015 And I have to check a file located inside each of these folder. For example, the goal is to see if .snapshot/weekly.2024-04-14_0015/my/path/to/the/file.php differs from weekly.2024-04-07_0015/my/path/to/the/file.php or from .snapshot/weekly.2024-03-31_0015/my/path/to/the/file.php, or from .snapshot/weekly.2024-04-07_0015/my/path/to/the/file.php etc. Is there an obvious simple way for this? P-S : There are other files/folders that changed inside this folder and I cannot just compare the whole folder.
Asked by ppr (1977 rep)
Apr 15, 2024, 11:20 AM
Last activity: Apr 15, 2024, 12:00 PM