Create Zip/Backup through SSH in Ubuntu/linux

 First login through ssh command

 

For current directory -> 

-> Cd directory name(if current folder than add ./ )

-> run command   zip -r filename.zip

 

Except some folder/extension/directory ->

-> -x \*.zip this is used for psrticular extension 

-> -x filename this is for particular file

->Run command  zip -r filename.zip ./ -x \*.zip -x filename

 

Comments