backing_up_your_data
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
backing_up_your_data [2021/09/28 12:55] – bash to sh atolstov | backing_up_your_data [2022/01/15 20:47] – ↷ Links adapted because of a move operation 127.0.0.1 | ||
---|---|---|---|
Line 3: | Line 3: | ||
- | {{ :: | + | {{ network: |
<WRAP center round important 80%> | <WRAP center round important 80%> | ||
Line 22: | Line 22: | ||
- | <code bash> | + | <code bash backup.sh> |
#!/bin/bash | #!/bin/bash | ||
# Create a folder ~/ | # Create a folder ~/ | ||
Line 36: | Line 36: | ||
gzip -v log-$yesterday.sqlite3 | gzip -v log-$yesterday.sqlite3 | ||
</ | </ | ||
+ | |||
+ | <WRAP center round tip 60%> | ||
+ | Do not forget grant additional run permissions | ||
+ | </ | ||
+ | chmod u+x / | ||
+ | |||
Add the script to the //crontab// with the parameters: | Add the script to the //crontab// with the parameters: | ||
Line 41: | Line 47: | ||
to run it every day at 00:10 | to run it every day at 00:10 | ||
- | <WRAP center round tip 60%> | ||
- | Do not forget grant additional run permissions | ||
- | </ | ||
- | chmod a+x / | ||
New files will only be added to ~/ | New files will only be added to ~/ |
backing_up_your_data.txt · Last modified: 2023/05/02 10:43 by atolstov