snipt

Ctrl+h for KB shortcuts

Bash

tar but exclude files listed in text file

$ tar cfvzp myfile.tgz -X exclude.txt ../public_html/
https://snipt.net/embed/d9696763b4f3d445a00fa99c06dff02b/
/raw/d9696763b4f3d445a00fa99c06dff02b/
d9696763b4f3d445a00fa99c06dff02b
bash
Bash
1
2019-06-18T10:58:39
True
False
False
/api/public/snipt/20282/
tar-but-exclude-files-listed-in-text-file
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>$ tar cfvzp myfile.tgz -X exclude.txt ../public_html/ </span></pre></div> </td></tr></table>
archive, backup, tar

Text only

How can i make an backup of the snipt.net snippts ???

1
2
3
4
How can i make an backup of the snipt.net snippts ???
(my own snipt's for example)

Can anyone help me ?
https://snipt.net/embed/342522694f9d00c68840299bdc92fd46/
/raw/342522694f9d00c68840299bdc92fd46/
342522694f9d00c68840299bdc92fd46
text
Text only
4
2019-06-14T04:17:02
True
False
False
/api/public/snipt/19481/
how-can-i-make-an-backup-of-the-sniptnet-snippts
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>How can i make an backup of the snipt.net snippts ??? </span><span id="L-2"><a name="L-2"></a>(my own snipt&#39;s for example) </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>Can anyone help me ? </span></pre></div> </td></tr></table>
???, an, backup, can, how, i, make, of, snippts, snipt.net, the

Text only

How to Dump All Databases in MySQL Server

mysqldump -u username -ppassword –all-databases > dump.sql
https://snipt.net/embed/b266754b87fe450e579ce913fe0f9577/
/raw/b266754b87fe450e579ce913fe0f9577/
b266754b87fe450e579ce913fe0f9577
text
Text only
1
2019-05-24T04:24:24
True
False
False
/api/public/snipt/18024/
how-to-dump-all-databases-in-mysql-server
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>mysqldump -u username -ppassword –all-databases &gt; dump.sql </span></pre></div> </td></tr></table>
backup, mysql

Text only

(gs) Grid-Service backup to Amazon S3

1
2
3
4
Automated Backup for (gs) Grid-Service to Amazon S3
http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/

http://code.google.com/p/ziplinebackup/
https://snipt.net/embed/f0ef63e1c95a2513c2f2ba073684d276/
/raw/f0ef63e1c95a2513c2f2ba073684d276/
f0ef63e1c95a2513c2f2ba073684d276
text
Text only
4
2019-06-19T19:32:05
True
False
False
/api/public/snipt/14798/
gs-grid-service-backup-to-amazon-s3
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>Automated Backup for (gs) Grid-Service to Amazon S3 </span><span id="L-2"><a name="L-2"></a>http://www.christinawarren.com/2008/06/24/s3-backup-media-temple-gs/ </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a>http://code.google.com/p/ziplinebackup/ </span></pre></div> </td></tr></table>
(gs), backup

Bash

Database dump and import from the commandline

1
2
3
4
5
#dump
mysqldump db_name --user=db_user -p > backup.sql

#import
mysql --user=username -p db_name < backup.sql
https://snipt.net/embed/55ee90c093ef42f638112fe20e7af750/
/raw/55ee90c093ef42f638112fe20e7af750/
55ee90c093ef42f638112fe20e7af750
bash
Bash
5
2019-06-21T02:56:29
True
False
False
/api/public/snipt/12915/
dump-a-database-from-the-commandline
<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></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a><span class="c1">#dump</span> </span><span id="L-2"><a name="L-2"></a>mysqldump db_name --user<span class="o">=</span>db_user -p &gt; backup.sql </span><span id="L-3"><a name="L-3"></a> </span><span id="L-4"><a name="L-4"></a><span class="c1">#import</span> </span><span id="L-5"><a name="L-5"></a>mysql --user<span class="o">=</span>username -p db_name &lt; backup.sql </span></pre></div> </td></tr></table>
backup, dump, mysql, mysqldump

Bash

Archive mail with archivemail into mbox format

archivemail --date=2010-01-15 --dont-mangle --include-flagged -n -v --output-dir=archived imaps://"[email protected]":"password"@mail.domain.com/INBOX.Sent
https://snipt.net/embed/5a2a732eb7e603ba151c4ce70dd869ba/
/raw/5a2a732eb7e603ba151c4ce70dd869ba/
5a2a732eb7e603ba151c4ce70dd869ba
bash
Bash
1
2019-06-10T03:38:03
True
False
False
/api/public/snipt/11763/
archive-mail-with-archivemail-into-mbox-format
<table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><a href="#L-1">1</a></pre></div></td><td class="code"><div class="highlight"><pre><span></span><span id="L-1"><a name="L-1"></a>archivemail --date<span class="o">=</span>2010-01-15 --dont-mangle --include-flagged -n -v --output-dir<span class="o">=</span>archived imaps://<span class="s2">&quot;[email protected]&quot;</span>:<span class="s2">&quot;password&quot;</span>@mail.domain.com/INBOX.Sent </span></pre></div> </td></tr></table>
archive, archivemail, backup, email