snipt

Ctrl+h for KB shortcuts

Bash

Crontab 1and1

1
2
3
4
5
6
7
8
# daily backup of my server
00 05 * * * $HOME/scripts/backup_server.sh
# daily remote backup of Joomla websites
00 05 * * * $HOME/scripts/joomla_remote_backup.sh
# weekly offsite backup of my server
00 06 * * 1 $HOME/scripts/backup_server_offsite.sh
# weekly offsite backup of Joomla websites
00 06 * * 1 $HOME/scripts/joomla_offsite_backup.sh
https://snipt.net/embed/a756f373818c9cbd32089fbcfe8bc0eb/
/raw/a756f373818c9cbd32089fbcfe8bc0eb/
a756f373818c9cbd32089fbcfe8bc0eb
bash
Bash
8
2019-08-24T02:36:03
True
False
False
/api/public/snipt/20569/
crontab-1and1
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a> <a href="#L-2">2</a> <a href="#L-3">3</a> <a href="#L-4">4</a> <a href="#L-5">5</a> <a href="#L-6">6</a> <a href="#L-7">7</a> <a href="#L-8">8</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1"># daily backup of my server</span> </span><span id="L-2"><a name="L-2"></a><span class="m">00</span> <span class="m">05</span> * * * <span class="nv">$HOME</span>/scripts/backup_server.sh </span><span id="L-3"><a name="L-3"></a><span class="c1"># daily remote backup of Joomla websites</span> </span><span id="L-4"><a name="L-4"></a><span class="m">00</span> <span class="m">05</span> * * * <span class="nv">$HOME</span>/scripts/joomla_remote_backup.sh </span><span id="L-5"><a name="L-5"></a><span class="c1"># weekly offsite backup of my server</span> </span><span id="L-6"><a name="L-6"></a><span class="m">00</span> <span class="m">06</span> * * <span class="m">1</span> <span class="nv">$HOME</span>/scripts/backup_server_offsite.sh </span><span id="L-7"><a name="L-7"></a><span class="c1"># weekly offsite backup of Joomla websites</span> </span><span id="L-8"><a name="L-8"></a><span class="m">00</span> <span class="m">06</span> * * <span class="m">1</span> <span class="nv">$HOME</span>/scripts/joomla_offsite_backup.sh </span></pre></div> </td></tr></table>
backup, cron, linux, server