Skip to content

wojciehm/macOS-.bash_profile-cron-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This short script allows you to backup your .bash_profile and run it as cron job.

After adjustment (for example change to ) can be

Bash Logo

  1. It copies the .bash_profile from an original location to your desired destination.
    cp /PATH-TO-YOUR-PROFILE/.bash_profile /BACKUP-DESTINATION/macOS-.bash_profile-backup
  2. Then we enter your backup destination.
    cd /BACKUP-DESTINATION/macOS-.bash_profile-backup
  3. With git add . we add all files into the GitHub repository.
  4. We commit all files with comment from script execution time:
    "generated files on date +'%Y-%m-%d %H:%M:%S'";
    git commit -a -m "generated files on date +'%Y-%m-%d %H:%M:%S'";
  5. And at the very end we push to GitHub.
    git push origin master

About

This short script allows you to backup your .bash_profile and run it as cron job

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages