Difference between revisions of "User:Pineadmin/OpenMediaVault"
Jump to navigation
Jump to search
Line 53: | Line 53: | ||
<pre<noinclude></noinclude> style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"> | <pre<noinclude></noinclude> style="white-space: pre-wrap; white-space: -moz-pre-wrap; white-space: -pre-wrap; white-space: -o-pre-wrap; word-wrap: break-word;"> | ||
You required 2 devices (e.g. 2 ROCK64, PINE64, SOPINE or etc) to Clone/Backup from master to slave or bidirectional(Not fully tested). | |||
1. Complete the "[[#Basic_Setup|Basic Setup]]" above | |||
[IF YOU KNOW HOW TO SETUP DYNAMIC DNS ON YOUR INTERNET MODEM/ROUTER PLEASE SKIP TO #8] | |||
2. Services -> SSH -> Permit root login (enable) (Remember to always disable it back for security reason) | |||
3. SSH to the device with Putty: root / openmediavault (Remember to change the default password) | |||
4. # apt-get install ddclient (no-ip.com example) | |||
Dynamic DNS service provider: other | |||
Dynamic DNS server: dynupdate.no-ip.com | |||
Dynamic DNS update protocol: dyndns2 | |||
Username for dynamic DNS service: <<<USERNAME/EMAIL>>> | |||
Password for dynamic DNS service: <<<PASSWORD>>> | |||
Re-enter password to verify: <<<PASSWORD>>> | |||
Network interface used for dynamic DNS service: web | |||
DynDNS fully qualified domain names: <<<CNAME>>>.ddns.net | |||
Run ddclient on PPP connect? No | |||
Run ddclient as daemon? Yes | |||
Interval between ddclient runs: 300 | |||
# dpkg-reconfigure ddclient (To Re-run configuration wizard above) | |||
5. # vi /etc/ddclient.conf | |||
Change: use=if, if=web | |||
To: use=web, web=checkip.dyndns.com, web-skip='Current IP Address' | |||
########## | |||
protocol=dyndns2 | |||
use=web, web=checkip.dyndns.com, web-skip='Current IP Address' | |||
server=dynupdate.no-ip.com | |||
login=<<<USERNAME/EMAIL>>> | |||
password='<<<PASSWORD>>>' | |||
<<<CNAME>>>.ddns.net | |||
########## | |||
6. # systemctl restart ddclient (Restart ddclient after changed in configuration) | |||
7. Diagnostics: | |||
# ddclient -daemon=0 -debug -verbose -noquiet | |||
# systemctl status ddclient | |||
--- [TO BE TESTED] --- | |||
8. On your internet modem/router: Port Forward to the slave/destination device with port 873. | |||
9. [On slave/destination device] Services -> Rsync -> Server -> Settings -> Enable -> Save -> Apply | |||
-> Modules -> Add -> General then User -> Add | |||
10. Services -> Rsync -> Jobs -> Add (Type: Remote, Mode: Push, Destination server: [USER]@[<<<CNAME>>>.ddns.net]::[Module]) | |||
- for testing: select Job -> Run | |||
- for bidirectional Rsync: Add another Job to Pull from slave/destination device (Don't enable Delete because new file/folder will be deleted) | |||
11. Diagnostics -> System Logs | |||
</pre> | </pre> |
Revision as of 07:23, 22 November 2017
If you are dealing with confidential files transfer/sharing, please make sure your setup is secured with long and hard to guess random password or PKI keys. Make sure you use DUMMY folders/files for testing first to get yourself familiar and comfortable with the settings.
Basic Setup
1. If no output on HDMI, you need to find the IP Address with tools (e.g. netscan) (hostname: PINE64, PINE64SO) 2. Use the IP Address on PC browser to login to the Web Admin Pages: admin / openmediavault (Remember to change the default password: System -> General Settings -> Web Administrator Password) 3. Plug USB Drive 4. Go to Storage -> Physical Disks -> Scan 5. Go to Storage -> File Systems -> select the Partition to mount -> Mount -> Apply 6. Access Right Management -> User -> Add 7. Access Right Management -> Shared Folders -> Add - select newly added Shared Folder -> Privileges -> tick Read/Write -> Save
FTP
1. Complete the "Basic Setup" above 2. Services -> FTP -> Settings -> Enable -> Save -> Apply -> Shares -> Add -> Apply
Rsync Clone/Backup
You required 2 devices (e.g. 2 ROCK64, PINE64, SOPINE or etc) to Clone/Backup from master to slave or bidirectional(Not fully tested). 1. Complete the "Basic Setup" above 2. [On slave/destination device] Services -> Rsync -> Server -> Settings -> Enable -> Save -> Apply -> Modules -> Add -> General then User -> Add 3. Services -> Rsync -> Jobs -> Add (Type: Remote, Mode: Push, Destination server: [USER]@[HOST]::[Module]) - for testing: select Job -> Run - for bidirectional Rsync: Add another Job to Pull from slave/destination device (Don't enable Delete because new file/folder will be deleted) 4. Diagnostics -> System Logs
Rsync Clone/Backup (Through Internet)
You required 2 devices (e.g. 2 ROCK64, PINE64, SOPINE or etc) to Clone/Backup from master to slave or bidirectional(Not fully tested). 1. Complete the "Basic Setup" above [IF YOU KNOW HOW TO SETUP DYNAMIC DNS ON YOUR INTERNET MODEM/ROUTER PLEASE SKIP TO #8] 2. Services -> SSH -> Permit root login (enable) (Remember to always disable it back for security reason) 3. SSH to the device with Putty: root / openmediavault (Remember to change the default password) 4. # apt-get install ddclient (no-ip.com example) Dynamic DNS service provider: other Dynamic DNS server: dynupdate.no-ip.com Dynamic DNS update protocol: dyndns2 Username for dynamic DNS service: <<<USERNAME/EMAIL>>> Password for dynamic DNS service: <<<PASSWORD>>> Re-enter password to verify: <<<PASSWORD>>> Network interface used for dynamic DNS service: web DynDNS fully qualified domain names: <<<CNAME>>>.ddns.net Run ddclient on PPP connect? No Run ddclient as daemon? Yes Interval between ddclient runs: 300 # dpkg-reconfigure ddclient (To Re-run configuration wizard above) 5. # vi /etc/ddclient.conf Change: use=if, if=web To: use=web, web=checkip.dyndns.com, web-skip='Current IP Address' ########## protocol=dyndns2 use=web, web=checkip.dyndns.com, web-skip='Current IP Address' server=dynupdate.no-ip.com login=<<<USERNAME/EMAIL>>> password='<<<PASSWORD>>>' <<<CNAME>>>.ddns.net ########## 6. # systemctl restart ddclient (Restart ddclient after changed in configuration) 7. Diagnostics: # ddclient -daemon=0 -debug -verbose -noquiet # systemctl status ddclient --- [TO BE TESTED] --- 8. On your internet modem/router: Port Forward to the slave/destination device with port 873. 9. [On slave/destination device] Services -> Rsync -> Server -> Settings -> Enable -> Save -> Apply -> Modules -> Add -> General then User -> Add 10. Services -> Rsync -> Jobs -> Add (Type: Remote, Mode: Push, Destination server: [USER]@[<<<CNAME>>>.ddns.net]::[Module]) - for testing: select Job -> Run - for bidirectional Rsync: Add another Job to Pull from slave/destination device (Don't enable Delete because new file/folder will be deleted) 11. Diagnostics -> System Logs