Утилита DietPi-Sync из операционной системы DietPi для Orange Pi позволяет делать копии и синхронизировать папки как на локальной так и на удаленной системе. Я использую утилиту DietPy-Sync для создания копии Веб-сервера (файлов и баз данных сайтов).

Запустите утилиту dietpi-drive_manager. Будет остановлен cron, apache2, mysql

root@OPiPC2:~# dietpi-drive_manager

 DietPi-Services
─────────────────────────────────────────────────────
 Mode: stop
 Please wait...

 [Ok] cron
 [Ok] apache2
 [Ok] mysql

Запустите утилиту DietPi-Sync

/DietPi/dietpi/dietpi-sync

DietPi-Sync                                                                     
                                                                                
   ┌──────────────────────────┤ - DietPi-Sync - ├──────────────────────────┐    
   │ Source location:                                                      │    
   │   /mnt/Source                                                         │    
   │                                                                       │    
   │ Target location:                                                      │    
   │   /mnt/Target                                                         │    
   │                                                                       │    
   │ Most recent successful sync date:                                     │    
   │   No previous sync found in target directory.                         │    
   │                                                                       │    
   │    Help            What does DietPi-Sync do?                          │    
   │    Source Location Change the Source directory.                       │    
   │    Target Location Change the Target directory.                       │    
   │    Delete Mode     Disabled                                           │    
   │    Compression     Disabled                                           │    
   │    Sync: Daily     Disabled                                           │    
   │    Sync: Dry Run   Run a test Sync without modifying any data.        │    
   │    Sync: Now       Sync the Source location to the Target location.   │    
   │                                                                       │    
   │                                                                       │    
   │                  <Ok>                      <Exit>                     │    
   │                                                                       │    
   └───────────────────────────────────────────────────────────────────────┘    
                                                                                
DietPi-Sync                                                                     
                                                                               
  ┌──────────────────┤ Select your Sync Source location ├───────────────────┐   
  │ Please select the Source location.                                      │   
  │ A copy of all the files and folder in this Source location, will be     │   
  │ created at the Target location.                                         │   
  │                                                                         │   
  │ Current Source location:                                                │   
  │                                                                         │   
  │       Manual       Manually type your Source directory.                 │   
  │       List         Select from a list of available mounts/drives        │   
  │       Samba Client Not mounted (/mnt/samba). Select to setup.           │   
  │       FTP Client   Not mounted (/mnt/ftp_client). Select to setup.      │   
  │                                                                         │   
  │                                                                         │   
  │                                                                         │   
  │                   <Ok>                       <Back>                     │   
  │                                                                         │   
  └─────────────────────────────────────────────────────────────────────────┘   
                                                                                
DietPi-Sync                                                                     
                                                                                
     ┌─────────────────────┤ Manual sync directory ├──────────────────────┐     
     │ Please enter the filepath to your Source directory.                │     
     │ eg: /mnt/source                                                    │     
     │                                                                    │     
     │ /mnt/dietpi_userdata _____________________________________________ │     
     │                 <Ok>                     <Отмена>                  │     
     │                                                                    │     
     └────────────────────────────────────────────────────────────────────┘     
                                                                                
DietPi-Sync                                                                     
                                                                                
   ┌──────────────────────────┤ - DietPi-Sync - ├──────────────────────────┐    
   │ Source location:                                                      │    
   │  /mnt/dietpi_userdata                                                 │    
   │                                                                       │    
   │ Target location:                                                      │    
   │   /mnt/Target                                                         │    
   │                                                                       │    
   │ Most recent successful sync date:                                     │    
   │   No previous sync found in target directory.                         │    
   │                                                                       │    
   │    Help            What does DietPi-Sync do?                          │    
   │    Source Location Change the Source directory.                       │    
   │    Target Location Change the Target directory.                       │    
   │    Delete Mode     Disabled                                           │    
   │    Compression     Disabled                                           │    
   │    Sync: Daily     Disabled                                           │    
   │    Sync: Dry Run   Run a test Sync without modifying any data.        │    
   │    Sync: Now       Sync the Source location to the Target location.   │    
   │                                                                       │    
   │                                                                       │    
   │                  <Ok>                      <Exit>                     │    
   │                                                                       │    
   └───────────────────────────────────────────────────────────────────────┘  

DietPi-Sync                                                                     
                                                                                
  ┌──────────────────┤ Select your Sync Target location ├───────────────────┐   
  │ Please select the Target location.                                      │   
  │ A copy of all the files and folders in the Source location will be      │   
  │ created here.                                                           │   
  │                                                                         │   
  │ Current Target location:                                                │   
  │ /mnt/Target                                                             │   
  │                                                                         │   
  │       Manual       Manually type your Target directory.                 │   
  │       List         Select from a list of available mounts/drives        │   
  │       Samba Client Not mounted (/mnt/samba). Select to setup.           │   
  │       FTP Client   Not mounted (/mnt/ftp_client). Select to setup.      │   
  │                                                                         │   
  │                                                                         │   
  │                   <Ok>                       <Back>                     │   
  │                                                                         │   
  └─────────────────────────────────────────────────────────────────────────┘   

DietPi-Drive Manager                                                                                                           
                                                                                                                               
┌────────────────────────────────┤ DietPi-Drive Manager ├─────────────────────────────────┐         
│ Please select a mount location to use:                                                  │         
│                                                                                         │         
│ /                                         : /dev/mmcblk0p2 | size: 15G | available: 14G │         
│ /mnt/f1198dc4-a2ff-49d6-b48b-e80797329181 : /dev/sda1 | size: 15G | available: 14G      │         
│ /mnt/0288223a-27f2-4d85-b849-1bd3075c4d49 : /dev/sdb1 | size: 30G | available: 28G      │         
│ /boot                                     : /dev/mmcblk0p1 | size: 64M | available: 31M │         
│                                                                                         │         
│                     <Ok>                                   <Exit>                       │         
│                                                                                         │         
└─────────────────────────────────────────────────────────────────────────────────────────┘  
                                                                                
DietPi-Sync                                                                     
                                                                                
  ┌──────────────────┤ Select your Sync Target location ├───────────────────┐   
  │ Please select the Target location.                                      │   
  │ A copy of all the files and folders in the Source location will be      │   
  │ created here.                                                           │   
  │                                                                         │   
  │ Current Target location:                                                │   
  │ /mnt/0288223a-27f2-4d85-b849-1bd3075c4d49                               │   
  │                                                                         │   
  │       Manual       Manually type your Target directory.                 │   
  │       List         Select from a list of available mounts/drives        │   
  │       Samba Client Not mounted (/mnt/samba). Select to setup.           │   
  │       FTP Client   Not mounted (/mnt/ftp_client). Select to setup.      │   
  │                                                                         │   
  │                                                                         │   
  │                   <Ok>                       <Back>                     │   
  │                                                                         │   
  └─────────────────────────────────────────────────────────────────────────┘  

DietPi-Sync                                                                     
                                                                                
     ┌─────────────────────┤ Manual sync directory ├──────────────────────┐     
     │ Please enter the filepath to your Target directory.                │     
     │ eg: /mnt/target                                                    │     
     │                                                                    │     
     │ /mnt/0288223a-27f2-4d85-b849-1bd3075c4d49/dietpi_userdata_________ │     
     │                 <Ok>                     <Отмена>                  │     
     │                                                                    │     
     └────────────────────────────────────────────────────────────────────┘     

DietPi-Sync                                                                     
                                                                                
   ┌──────────────────────────┤ - DietPi-Sync - ├──────────────────────────┐    
   │ Source location:                                                      │    
   │   /mnt/dietpi_userdata                                                │    
   │                                                                       │    
   │ Target location:                                                      │    
   │   /mnt/0288223a-27f2-4d85-b849-1bd3075c4d49/dietpi_userdata           │    
   │                                                                       │    
   │ Most recent successful sync date:                                     │    
   │   13-07-2017_1606                                                     │    
   │                                                                       │    
   │    Help            What does DietPi-Sync do?                          │    
   │    Source Location Change the Source directory.                       │    
   │    Target Location Change the Target directory.                       │    
   │    Delete Mode     Disabled                                           │    
   │    Compression     Disabled                                           │    
   │    Sync: Daily     Disabled                                           │    
   │    Sync: Dry Run   Run a test Sync without modifying any data.        │    
   │    Sync: Now       Sync the Source location to the Target location.   │    
   │                                                                       │    
   │                                                                       │    
   │                  <Ok>                      <Exit>                     │    
   │                                                                       │    
   └───────────────────────────────────────────────────────────────────────┘    

 

ln -is /mnt/0288223a-27f2-4d85-b849-1bd3075c4d49/dietpi_userdata /mnt/

Выйдите из утилиты dietpi-drive_manager. Будет запущен cron, apache2, mysql

 DietPi-Services
─────────────────────────────────────────────────────
 Mode: start
 Please wait...

 [Ok] cron
 [Ok] apache2
 [Ok] mysql