I need help with touch command.
I fukked up something and have to re-write the timestamps for almost 300,000+ files on a production system.
Here is the problem: The storage server where the files are stored had the wrong time. I adjusted the time but the application is still reading the timestamp but i need to increase it by a certain amount of time.
Looking at the man page for touch i see the -t option but it requires a date. I CANNOT use a specific date for all 300,000 files. I just need to increase their timestamp date by a certain amount of days (by 1,217 days). Kinda like the -mtime + 1217 option would work in a find command.
Any ideas?
I fukked up something and have to re-write the timestamps for almost 300,000+ files on a production system.
Here is the problem: The storage server where the files are stored had the wrong time. I adjusted the time but the application is still reading the timestamp but i need to increase it by a certain amount of time.
Looking at the man page for touch i see the -t option but it requires a date. I CANNOT use a specific date for all 300,000 files. I just need to increase their timestamp date by a certain amount of days (by 1,217 days). Kinda like the -mtime + 1217 option would work in a find command.
Any ideas?