Nextcloud News
Discussion 🌐 English

Directory Creation Timestamps Lost During Migration

A Nextcloud user experienced a loss of directory creation timestamps after migrating data using rsync.

A user encountered a problem when migrating a user’s directory from one Nextcloud server to another using the `rsync -a` command line tool. While the data transfer and file timestamps appeared correct initially, the directory creation timestamps were altered after a `occ files:scan` operation on the destination server.

The user attempted to preserve the timestamps during the migration process, but the directory timestamps now reflect the time of the scan on the destination server, while individual file timestamps remain accurate. The user migration app was unsuitable due to the large data volume, exceeding 3TB.

The user is seeking advice on whether an `occ` command exists to update the displayed modification time to match the storage modification time, or if there are alternative migration methods that could preserve these timestamps.

← Back to all news