[Bash][GNU/Linux] How to Backup your Drupal Site?
https://www.zyxware.com/sites/default/files/styles/user_image/public/default_images/index.png?itok=2YmREnrP
BY deepa.n
6 years ago
Ubuntu
0 comments comment

Backup! Backup! Backup! Always back up your Drupal site's code and database before you actually start making any changes to your site. Do you have access to the control panel? Cool! Go ahead and create a zip file of your entire site, export your db, download it to your local machine and you are done. Read on to know how to backup your Drupal site.

Open up a terminal window in your Linux box and type the following commands to get it done instantly.

At first create a backup directory to store the site's backup in the root folder.

$ sudo mkdir backup

How to create a Mysql dump?

$ mysqldump -u [username] -p[password] [dbname] > db.backup_20121004.sql

OR

$ mysqldump -u [username] -p [dbname] db.backup_20121004.sql

Here is an example of how you actually use this command and your database back up will be created at the same path.
E.g. mysqldump -u root -p example_db > db.backup_20121004.sql

How to create a back up of Files and folders?

Step 1: Compress files

$ tar -zcvpf files.backup_20121004.tar.gz /backup

If the directories require root permission then try the tar command using the sudo command as follows:

$ sudo tar -zcvpf files.backup_20121004.tar.gz /backup

Step 2: Securely copy the back up files to your machine

$ scp [filename] [username]@[host_name]:[destination_folder]

OR

$ scp [remote_username]@[remote_hostname]:/[path_to_remote]/[filename] [path_to_local]/[filename]

For more details try this command: $ man scp in the terminal.

Hope the article was helpful, please leave your feedback using the comments box below.


RELATED ARTICLE

/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 20th April 2007 / by webmaster
Linux has been growing in leaps and bounds in terms of internationalization. Linux Malayalam Open Source Ubuntu Leave a reply Your email address will not be published. Required fields are marked * Ranjith Antony (not verified) access_time 12 Nov 2019 - 08:25 Everything is fine an dandy. However, to read those websites which doesn't support unicode fonts you have to install padma firefox extension . Those websites include all malayalam newspaper websites including, deepika, manorama, keralakaumudi etc. These websites only support truetype fonts. TrueTypes are glyphs matching a malayalam character but doesn't have a hex code assigned to it. They use ASCII character set but with a different glyph. Just to read malayalam, you only need to perform the first 3 steps in Peringodan's blog, in addition to the hacks thats been explained in this blog post. PS: Its so funny; a tutorial to explain how to install malayalam read and write support is written in malayalam. Thats what called a chicken and egg problem. Cherry (not verified) access_time 12 Nov 2019 - 08:25 I’d like to point out a couple of things: a) Malayalam support is not an Ubuntu thing or a Linux thing… I am running NetBSD -current on my laptop with x.org and I can type malayalam. Learning the key combinations is very easy and intuitive… it just requires attention and commitment. I learnt it in about a week and something. b) Mangleesh support for TeX has been around for a while. The TuX group in Trivandrum and specifically A.J.Alex have worked on very good quality latex support for malayalam. See: sarovar.org Just to set the record. Cheers, Cherry. vimal access_time 12 Nov 2019 - 08:25 Ready to use packages to support malayalam in Ubuntu 7.10 and Debian GNU/Linux Etch is available at http://malaylam.web4all.in . Add new comment
/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 05th May 2007 / by webmaster
BSNL is one of the leading broadband providers in India. Hardware Linux Networking Ubuntu Leave a reply Your email address will not be published. Required fields are marked * Abhi (not verified) access_time 12 Nov 2019 - 06:36 Hello, I am trying to connect to my D-link DI-614 wireless router to the my BSNL ADSL broadband modem DB108. My PC is currently connected to the modem via an ethernet link. Instead, I established a two-way connection in the following way: 1) Router - modem via ethernet cable. 2) PC - Router via an ethernet cable. However when I do this, my PC is not able to connect to the internet. I am wondering if anyone can help me out with this. Subhadeep (not verified) access_time 12 Nov 2019 - 06:36 Thankx for this i was in a real problem connecting to the net via broadband on BSNL. Thankx again man u r life saver... Pagination Current page 1 Page 2 Next page Next › Last page Last » Add new comment
/themes/custom/zyxpro_light/images/placeholder.png
more_horiz
close

on 08th May 2007 / by webmaster
A majority of people still look at Linux as something where you have to type everything in consol Linux Ubuntu Leave a reply Your email address will not be published. Required fields are marked * Manoj Mathai (not verified) access_time 12 Nov 2019 - 09:31 hi, read your comment on slashdot. thats how i got here. i think ubuntu is a gr8 linux distro and all it needs is good support and lots of GUI tools to make it smoooth to install and use. if each linux enthusiast can get atleast 5 ppl to atleast try ubuntu or any other distro, i think it would be of gr8 help. anyways, what role does linux play in your company ? Jayson (not verified) access_time 12 Nov 2019 - 09:31 I stumbled upon your blog and I definitely will give you a ring when I need something for my PC! Anoop John (not verified) access_time 12 Nov 2019 - 09:31 Manoj, We sell PCs and Peripherals. We give linux as the preloaded operating system in all the systems we sell. Ubuntu is our default choice unless the customer requests another distro. We also have a software development division. All the systems used for software development are running either ubuntu or xubuntu. We are also providing free linux assistance to customers. These are some ways we are trying to contribute to the Linux community. Add new comment
Leave a reply
Your email address will not be published. Required fields are marked *

Filtered HTML

  • Web page addresses and email addresses turn into links automatically.
  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type='1 A I'> <li> <dl> <dt> <dd> <h2 id='jump-*'> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
The content of this field is kept private and will not be shown publicly.
CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.