Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setup a cron to backup important files like ~/.bash/zsh_history #18

Open
ylogx opened this issue Dec 16, 2019 · 1 comment
Open

Setup a cron to backup important files like ~/.bash/zsh_history #18

ylogx opened this issue Dec 16, 2019 · 1 comment

Comments

@ylogx
Copy link
Owner

ylogx commented Dec 16, 2019

Losing months of commands from ~/.zsh_history is not a fun thing.

Setup a cron to create backups in location that are autouploaded to cloud storage e.g. Google Drive folder.

@jaymcgavren
Copy link

jaymcgavren commented Jun 23, 2022

After trying ln -s /Volumes/GoogleDrive/My\ Drive/shell/.zsh_history ~/.zsh_history (gets overwritten by zsh) and ln /Volumes/GoogleDrive/My\ Drive/shell/.zsh_history ~/.zsh_history (can't do a hard link across volumes) I landed here when Googling for a tested solution. Ah, well. 😛

Hopefully a simple 0 5 * * * cp /Users/jay/.zsh_history /Volumes/GoogleDrive/My\ Drive/shell/.zsh_history in my crontab will be effective.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants