How to run a background shell in SynetoOS 4

Written By Christian Castagna (Administrator)

Updated at May 27th, 2025

→ Applies to: SynetoOS 4.x

 

Step 1. Connect to SynetoOS appliance via SSH as admin

ssh admin@<your_ip_address_or_hostname>

 

Step 2 (optional). Change into Solaris shell (in case you're directed to an unsupported shell)

un sh

 

Step 3. Get root privileges

sudo su -

 

Step 4.  Start a background shell

screen

A new shell window will open and you can now launch any command and have it run in the background.

Screen mode allows you to run any long-running command without interruption, such as a data copy operation.

This is an EXAMPLE of a data copy command executed using the screen

root@syneto-os4:/var/storage/admin# syncoid -r flash/datastores/OS5.3-Test   admin@192.168.101.7:flash/datastores/OS5.3-Test-screen
The authenticity of host '192.168.101.7 (192.168.101.7)' can't be established.
ED25519 key fingerprint is SHA256:+zfT4i07sAMyT29M+dp6iA84F/rCaAh1opfTUb4V8qc.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '192.168.101.7' (ED25519) to the list of known hosts.
(admin@192.168.101.7) Password:
WARNING: lzop not available on source [local machine]- sync will continue without compression.
WARNING: lzop not available on target ssh:-S /tmp/syncoid-admin@192.168.101.7-1748264280-632 admin@192.168.101.7 - sync will continue without compression.
INFO: Sending oldest full snapshot flash/datastores/OS5.3-Test@auto:weekly-flash--datastores--OS5__3-Test-2025-05-02-10:00 to new target filesystem:
INFO: Sync size: ~30.9 GB
8.75GiB 0:00:35 [ 208MiB/s] [=========================================>                                                                                                              ] 28% ETA 0:01:28

 

NOTE

Use the following commands to manage screen


Press the following keys to exit

Control + A + D


Type this command to return to the previously closed screen session

screen -r