https://cs.indstate.edu/wiki/index.php?title=CS_Account_Backup&feed=atom&action=historyCS Account Backup - Revision history2024-03-28T21:27:22ZRevision history for this page on the wikiMediaWiki 1.31.0https://cs.indstate.edu/wiki/index.php?title=CS_Account_Backup&diff=2645&oldid=prevJkinne at 16:13, 11 May 20222022-05-11T16:13:15Z<p></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">← Older revision</td>
<td colspan="2" style="background-color: #fff; color: #222; text-align: center;">Revision as of 16:13, 11 May 2022</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l12" >Line 12:</td>
<td colspan="2" class="diff-lineno">Line 12:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Once you have a zip file with the files you want, you transfer it to wherever you want to keep it.  If you want to transfer to your personal computer, use an [https://cs.indstate.edu/wiki/index.php/Linux_-_System_Setup#File_Transfer_Program sftp program] to transfer to your computer. If you want to transfer to a different account on the CS server (or on some other unix/linux/mac server) you can use the text-based sftp program.  If I wanted to transfer the account_backup.zip file to some_server.indstate.edu with account someLogin on that system, I would do the following.</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>Once you have a zip file with the files you want, you transfer it to wherever you want to keep it.  If you want to transfer to your personal computer, use an [https://cs.indstate.edu/wiki/index.php/Linux_-_System_Setup#File_Transfer_Program sftp program] to transfer to your computer. If you want to transfer to a different account on the CS server (or on some other unix/linux/mac server) you can use the text-based sftp program.  If I wanted to transfer the account_backup.zip file to some_server.indstate.edu with account someLogin on that system, I would do the following.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div><pre></div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div># already logged in on the CS server</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div># already logged in on the CS server<ins class="diffchange diffchange-inline">, then run the following in the terminal - </ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>sftp someLogin@some_server.indstate.edu</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>sftp someLogin@some_server.indstate.edu</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div># may have had to enter password, and once you do that you are in the sftp program</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div># may have had to enter password, and once you do that you are in the sftp program</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>#  and can issue sftp commands</div></td><td class='diff-marker'>+</td><td style="color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>#  and can issue sftp commands<ins class="diffchange diffchange-inline">, for example put to send the file to some_server</ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>put account_backup.zip</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>put account_backup.zip</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>quit</div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div>quit</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td><td class='diff-marker'> </td><td style="background-color: #f8f9fa; color: #222; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;"><div></pre></div></td></tr>
</table>Jkinnehttps://cs.indstate.edu/wiki/index.php?title=CS_Account_Backup&diff=2644&oldid=prevJkinne: Created page with "If you want to create a backup of your account on the CS server, you can do the following. First, create a zip file that contains the files you want to backup. The following..."2022-05-11T16:11:49Z<p>Created page with "If you want to create a backup of your account on the CS server, you can do the following. First, create a zip file that contains the files you want to backup. The following..."</p>
<p><b>New page</b></p><div>If you want to create a backup of your account on the CS server, you can do the following.<br />
<br />
First, create a zip file that contains the files you want to backup. The following creates a zip file account_backup.zip that contains all files except the .cache directory and account_backup.zip.<br />
<pre><br />
find . ! -name account_backup.zip -path "./.cache" -prune -o -print | zip -@ account_backup<br />
</pre><br />
If you wanted to just zip certain directories (for example, the directories h1, h2, h3, h4) you could to this instead.<br />
<pre><br />
zip account_backup h1 h2 h3 h4<br />
</pre><br />
<br />
Once you have a zip file with the files you want, you transfer it to wherever you want to keep it. If you want to transfer to your personal computer, use an [https://cs.indstate.edu/wiki/index.php/Linux_-_System_Setup#File_Transfer_Program sftp program] to transfer to your computer. If you want to transfer to a different account on the CS server (or on some other unix/linux/mac server) you can use the text-based sftp program. If I wanted to transfer the account_backup.zip file to some_server.indstate.edu with account someLogin on that system, I would do the following.<br />
<pre><br />
# already logged in on the CS server<br />
sftp someLogin@some_server.indstate.edu<br />
# may have had to enter password, and once you do that you are in the sftp program<br />
# and can issue sftp commands<br />
put account_backup.zip<br />
quit<br />
</pre></div>Jkinne