Move file from one dataset tot another dataset

I am facing a challenge where I need to move the most recent file from one dataset to another on a monthly basis. I would like to automate this process by running a script that performs this action every month.

And?

Use cron from system settings / advanced

Well that was an easy question to answer. :slight_smile:

what would the command for cron be?

@rbartusik

If I understand your last post correctly you are asking someone else to give up their valuable time to help you and write you an answer because you are unwilling to spend your own time researching it, working out what you need to do and learning from the experience.

Or have I got the wrong end of this stick?

3 Likes

The command would presumably be to run whatever script you’d created to perform this task. Or are you asking us to write the script for you?

There’s nothing remotely ZFS-specific, much less TrueNAS-specific, about your question; any guidance you’d find about how to accomplish this task in Linux would likely be sufficient. A quick Google for “move most recent file Linux” finds lots of apparently-relevant results, including these:

(just to give the first three hits)

2 Likes

Thank you very much!