Skip to content

Commit 87fd7e5

Browse files
committed
add screen
1 parent af0552f commit 87fd7e5

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ RUN \
77
apk add --no-cache --upgrade \
88
logrotate \
99
mt-st \
10+
screen \
1011
tar && \
1112
echo "**** fix logrotate ****" && \
1213
sed -i "s#/var/log/messages {}.*# #g" /etc/logrotate.conf && \

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,15 @@ Basic facts about tapes and how they are operated with `mt` and `tar`:
3030
- To write the second file, make sure the `status` shows `File number=1` and `EOF`.
3131
- Same command, `tar -cvf /dev/nst0 sourcedirectory1 sourcedirectory2`, will now write the second tar file and the head should move to `File number=2`.
3232
- If you overwrite the first file, all subsequent files will be lost. Pay attention to where the head is before each write operation. You can use `mt` to forward to the end of the tape to be sure.
33+
- For long operations run manually via cli, you can use `screen` so you don't have to keep a shell open.
3334

3435
### Reading from tape:
3536

3637
- You can seek to the beginning of files with the command `mt -f /dev/nst0 asf X` with X being the file number (starting with 0).
3738
- To copy the first file from tape to the current folder on the local machine, rewind via `mt -f /dev/nst0 rewind` (or via `mt -f /dev/nst0 asf 0`).
3839
- Use the tar command to extract from tape: `tar -xvf /dev/nst0`. It will read the first file all the way to the EOF, and extract it to the local disk.
3940
- To copy the second file from tape, seek to it via `mt -f /dev/nst0 asf 1` and extract via `tar -xvf /dev/nst0`.
41+
- For long operations run manually via cli, you can use `screen` so you don't have to keep a shell open.
4042

4143
There are plenty more `mt` commands and arguments listed on its manpage: https://linux.die.net/man/1/mt
4244

0 commit comments

Comments
 (0)