mv interrupted when logged out for inactivity

taltamir

Dabbler
Joined
Aug 2, 2022
Messages
28
I am trying to move a massive amount of movies from one location to another.
Due to various problems with sharing a pool directly I have decided to switch all my movies to a dataset inside a pool instead.
To do this, I use the webgui to enter shell and simply use the mv command
mv /mnt/vpool/shows /mnt/vpool/vids
mv /mnt/vpool/movies /mnt/vpool/vids

where vpool is pool name.
shows and movies are folders
and vids is a dataset

however, it gets interrupted shortly after the shell closes!
for example, due to the gui logging me out for inactivity after X hours.
which leaves me with a copy since it didn't delete the original either.

is there some way to give shell commands that will run until they are actually finished instead of being stopped when the shell closes?
 

Alecmascot

Guru
Joined
Mar 18, 2014
Messages
1,177
It would be much better to use Putty for a CLI connection.
 

danb35

Hall of Famer
Joined
Aug 16, 2011
Messages
15,504
how can you use tmux in truenas?
The same way you'd use it anywhere else, on which question Google is your friend. But there's some material here:
Scroll down to the section for "Destructive Badblocks Test Using tmux". While the subject of that page is burn-in testing of your hard drives, there's some basics on how to use tmux there.
 
Top