![]() Tar czf $dest/$archive_file $backup_files1 $backup_files2 $backup_files3 $backup_files4 #!/bin/bashīackup_files1="/home/wyzer/.config/google-chrome/Default/Local*/kbmfpngjjgdllneeigpgjifpgocmfgmb"īackup_files2="/home/wyzer/.config/google-chrome/Default/Favicons"īackup_files3="/home/wyzer/.config/google-chrome/Default/Google*.png"īackup_files4="/home/wyzer/.config/google-chrome/Default/Favicons-journal"Įcho "Backing up $backup_files1 to $dest/$archive_file"Įcho "Backing up $backup_files2 to $dest/$archive_file"Įcho "Backing up $backup_files3 to $dest/$archive_file"Įcho "Backing up $backup_files4 to $dest/$archive_file" Turns out I just needed to inform TAR what folder needed to be backed up. Thanks to Dorian for providing some very good information I was able to figure out how to backup the files I wanted. # Long listing of files in $dest to check file sizes. Tar czf $dest/$archive_file $backup_files ![]() If I do have to create independent backup(NAME).sh scripts will I have to add some type of delay between each running script? #!/bin/bashīackup_files="/home/wyzer/.config/google-chrome/Default/Local*/kbmfpngjjgdllneeigpgjifpgocmfgmb"īackup_files="/home/wyzer/.config/google-chrome/Default/Favicons*"īackup_files="/home/wyzer/.config/google-chrome/Default/Favicons-journal*"īackup_files="/home/wyzer/.config/google-chrome/Default/Google*.png"ĭest="/home/wyzer/Downloads/Scripts/Test_Folder"Įcho "Backing up $backup_files to $dest/$archive_file" Is there another command that I am missing to be able complete multiple backups of different folder & files, or will I have to create a backup.sh for each and every file/folder I want to backup? I can move any one of those locations to the last line under # What to Backup., and that is all that will backup to the archive. I can backup only the last line of the " # What to Backup." folder and file locations. I am trying to create a script that runs at log-in or boot that backups some specific folders & files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |