I'm moving files on the server from one directory to another using the file manager. Is there a way to preserve file creation date/time (when it was first added to server)? Someone suggested SSH, but I'm not very familiar with it. Does anyone have some good instructions on this?
Substitute “C:photos” and “D:photos” for your source and destination folders respectively. options ensure that your original 'date modified' attributes are preserved during the copy. The /E option ensures that subfolders are also copied, including any empty folders you may have in the original location.
cp command provides an option –p for copying the file without changing the mode, ownership and timestamps. ownership, mode and timestamp. $ cp -p num.
Click the sort option in the top right of the Files area and select Date from the dropdown. Once you have Date selected, you will see an option to switch between descending and ascending order.
If you copy a file from C:\fat16 to D:\NTFS, it keeps the same modified date and time but changes the created date and time to the current date and time. If you move a file from C:\fat16 to D:\NTFS, it keeps the same modified date and time and keeps the same created date and time.
Use scp
with the -p
option.
-p Preserves modification times, access times, and modes from the original file.
Example command copying a file from local to remote server:
scp -p /home/mylocaldata/test.txt remote.example.com:/home/remote_dir
Note that this will not preserve user and group only permission flags (rwx and such).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With