linux backup file command

Method 1: Apply the backup folder
tar zcf backup file name.tar.gz Need to backup files/
for example:
tar zcf outer_backup.tar.gz outer

Method 2: Apply the backup folder
cp -rf source directory backup directory

Method 3: Apply the backup file
mv source file backup file

Guess you like

Origin blog.csdn.net/D_J1224/article/details/107529592