Backup or archive files

Backup and Archive your files only not the directory and sub directory.
For Backuping your all files only by lefting directory and subdirectory.
Use this command:
[[email protected] ~]$ ls -al | awk ‘$0!~/^d/ {print $9}’ | xargs tar cvf backup-Aug2017.tar
Archive File
This below command show you only the files list, which inculiding hidden files also.
[[email protected] ~]$ ls -al | awk ‘$0!~/^d/ {print $9}’

0 comments
0 likes
Prev post: Find your string & filesNext post: Data Backup in secure mode

Related posts

Leave a Reply

Your email address will not be published. Required fields are marked *

Aidbs Gallery
Latest Posts
Categories
Archives