File manager - Edit - /home/jardides/www/Cloud/core/doc/admin/maintenance/backup.html
Back
<!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Backup — Nextcloud 12 Server Administration Manual 12 documentation</title> <link rel="stylesheet" href="../_static/" type="text/css" /> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../_static/main.min.css" type="text/css" /> <link rel="stylesheet" href="../_static/styles.css" type="text/css" /> <script type="text/javascript"> var DOCUMENTATION_OPTIONS = { URL_ROOT: '../', VERSION: '12', COLLAPSE_INDEX: false, FILE_SUFFIX: '.html', HAS_SOURCE: true }; </script> <script type="text/javascript" src="../_static/jquery.js"></script> <script type="text/javascript" src="../_static/underscore.js"></script> <script type="text/javascript" src="../_static/doctools.js"></script> <script type="text/javascript" src="../_static/js/jquery-1.11.0.min.js"></script> <script type="text/javascript" src="../_static/js/jquery-fix.js"></script> <script type="text/javascript" src="../_static/bootstrap-3.1.0/js/bootstrap.min.js"></script> <script type="text/javascript" src="../_static/bootstrap-sphinx.js"></script> <link rel="top" title="Nextcloud 12 Server Administration Manual 12 documentation" href="../contents.html" /> <link rel="up" title="Maintenance" href="index.html" /> <link rel="next" title="Restoring Backup" href="restore.html" /> <link rel="prev" title="Maintenance" href="index.html" /> <meta charset='utf-8'> <meta http-equiv='X-UA-Compatible' content='IE=edge,chrome=1'> <meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1'> <meta name="apple-mobile-web-app-capable" content="yes"> <meta name="theme-color" content="#1d2d44"> </head> <body role="document"> <div class="wrap container not-front"> <div class="content row"> <main class="main"> <div class="row page-content-header"> <div class="col-md-5 col-md-offset-7"> <form class="headersearch" style="margin-bottom:-3px;" action="../search.html" method="get"> <input type="text" value="" name="q" id="q" class="form-control" /> <button class="btn btn-default" type="submit" id="searchsubmit">Search</button> </form> </div> </div> <div class="row"> <div class="col-md-3"> <div class="sidebar"> <div class="menu-support-container"> <ul id="menu-support" class="menu"> <ul> <li><a href="../contents.html">Table of Contents</a></li> </ul> <ul class="current"> <li class="toctree-l1"><a class="reference internal" href="../index.html">Introduction</a></li> <li class="toctree-l1"><a class="reference internal" href="../release_notes.html">Release Notes</a></li> <li class="toctree-l1"><a class="reference internal" href="../installation/index.html">Installation</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_server/index.html">Server Configuration</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_user/index.html">User Management</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_files/index.html">File Sharing and Management</a></li> <li class="toctree-l1"><a class="reference internal" href="../file_workflows/index.html">File Workflows</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_database/index.html">Database Configuration</a></li> <li class="toctree-l1"><a class="reference internal" href="../configuration_mimetypes/index.html">Mimetypes Management</a></li> <li class="toctree-l1 current"><a class="reference internal" href="index.html">Maintenance</a><ul class="current"> <li class="toctree-l2 current"><a class="current reference internal" href="">Backup</a><ul> <li class="toctree-l3"><a class="reference internal" href="#backup-folders">Backup Folders</a></li> <li class="toctree-l3"><a class="reference internal" href="#backup-database">Backup Database</a></li> </ul> </li> <li class="toctree-l2"><a class="reference internal" href="restore.html">Restoring Backup</a></li> <li class="toctree-l2"><a class="reference internal" href="upgrade.html">How to Upgrade</a></li> <li class="toctree-l2"><a class="reference internal" href="update.html">Upgrade via build-in Updater</a></li> <li class="toctree-l2"><a class="reference internal" href="manual_upgrade.html">Upgrade Manually</a></li> <li class="toctree-l2"><a class="reference internal" href="package_upgrade.html">Upgrade via Packages</a></li> <li class="toctree-l2"><a class="reference internal" href="migrating.html">Migrating to a Different Server</a></li> <li class="toctree-l2"><a class="reference internal" href="migrating_owncloud.html">Migrating from ownCloud</a></li> </ul> </li> <li class="toctree-l1"><a class="reference internal" href="../operations/index.html">Operations</a></li> <li class="toctree-l1"><a class="reference internal" href="../issues/index.html">Issues and Troubleshooting</a></li> </ul> </ul> </div> </div> </div> <div class="col-md-9"> <div class="page-content"> <ul class="prevnext-title list-unstyled list-inline"> <li class="prev"> <a href="index.html" title="Previous Chapter: Maintenance"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« Maintenance</span> </a> </li> <li class="next"> <a href="restore.html" title="Next Chapter: Restoring Backup"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Restoring Backup »</span> </a> </li> </ul> <div class="section" id="backup"> <h1>Backup<a class="headerlink" href="#backup" title="Permalink to this headline">¶</a></h1> <p>To backup an Nextcloud installation there are four main things you need to retain:</p> <ol class="arabic simple"> <li>The config folder</li> <li>The data folder</li> <li>The database</li> <li>The theme folder</li> </ol> <div class="section" id="backup-folders"> <h2>Backup Folders<a class="headerlink" href="#backup-folders" title="Permalink to this headline">¶</a></h2> <p>Simply copy your config, data and theme folders (or even your whole Nextcloud install and data folder) to a place outside of your Nextcloud environment. You could use this command:</p> <div class="highlight-python"><div class="highlight"><pre>rsync -Aax nextcloud/ nextcloud-dirbkp_`date +"%Y%m%d"`/ </pre></div> </div> </div> <div class="section" id="backup-database"> <h2>Backup Database<a class="headerlink" href="#backup-database" title="Permalink to this headline">¶</a></h2> <div class="admonition warning"> <p class="first admonition-title">Warning</p> <p class="last">Before restoring a backup see <a class="reference internal" href="restore.html"><em>Restoring Backup</em></a></p> </div> <div class="section" id="mysql-mariadb"> <h3>MySQL/MariaDB<a class="headerlink" href="#mysql-mariadb" title="Permalink to this headline">¶</a></h3> <p>MySQL or MariaDB, which is a drop-in MySQL replacement, is the recommended database engine. To backup MySQL/MariaDB:</p> <div class="highlight-python"><div class="highlight"><pre>mysqldump --single-transaction -h [server] -u [username] -p[password] [db_name] > nextcloud-sqlbkp_`date +"%Y%m%d"`.bak </pre></div> </div> </div> <div class="section" id="sqlite"> <h3>SQLite<a class="headerlink" href="#sqlite" title="Permalink to this headline">¶</a></h3> <div class="highlight-python"><div class="highlight"><pre>sqlite3 data/owncloud.db .dump > nextcloud-sqlbkp_`date +"%Y%m%d"`.bak </pre></div> </div> </div> <div class="section" id="postgresql"> <h3>PostgreSQL<a class="headerlink" href="#postgresql" title="Permalink to this headline">¶</a></h3> <div class="highlight-python"><div class="highlight"><pre>PGPASSWORD="password" pg_dump [db_name] -h [server] -U [username] -f nextcloud-sqlbkp_`date +"%Y%m%d"`.bak </pre></div> </div> </div> </div> </div> <ul class="prevnext-title list-unstyled list-inline"> <li class="prev"> <a href="index.html" title="Previous Chapter: Maintenance"><span class="glyphicon glyphicon-chevron-left visible-sm"></span><span class="hidden-sm">« Maintenance</span> </a> </li> <li class="next"> <a href="restore.html" title="Next Chapter: Restoring Backup"><span class="glyphicon glyphicon-chevron-right visible-sm"></span><span class="hidden-sm">Restoring Backup »</span> </a> </li> </ul> </div> </div> </div> </main> </div> </div> </body> </html>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings