Backup Command
Apr 22, 2007
I am trying to find the right command to backup files, but exclude certain ones and whole folders. I have experimented with various --exclude= and --exclude-from= combinations in my tar backups of my /var/www/html/ folder, but to not avail. I get either errors about non existant files when it checks to exclude, or it just ignores what I put and backs up the folder/files anyway.
If someone could give me the proper syntax to say... backup
/var/www/html/
but exclude
/var/www/html/garbagefiles/
from the tar backup,
View 3 Replies
ADVERTISEMENT
May 13, 2007
I want to transfer a huge database (sql ) of 5 GB to other server ( Remote ) , but i do not know how to do it ! and later i want to restore it also on the 1st server after i format it!
I know how to backup on my own server by using
Quote:
mysqldump -q -uxyourdomain -p -hmysql.yourdomain.com xyourdomain_2 >./myfile.txt
But please help me in telling a command which can make MySql backup from DB to another server
and
a command which can restore MySql backup of DB to another server
View 14 Replies
View Related
Mar 27, 2009
We want to backup the contents of our public_html dir to another server we sue for backups. What is the proper rsnyc command to use. I am currently in the source server and want to send it to a specific user account on the destination server.
View 2 Replies
View Related
Nov 7, 2008
We have a dedicated server, with chroot access enabled.
We are wanting to backup each site on this server, as well as all mysql dbs on a weekly basis.
Is it possible for us to run a cron job to do this? If so, what commands would we want to use?
We have a local FTP server here, so would like to ftp these backups this machine.
I know it all sounds a little vague, but I just need to know where to get started.
View 3 Replies
View Related
Apr 9, 2015
I'm looking to set up a schedulled backup from command line.
I haven't found the correct command, could you tell me if it's possible and how ?
Additional question: I'm looking too, to set for the server the max number backup file to save, do you know how to do it from cli ?
View 8 Replies
View Related
Jan 17, 2015
Is there a command line way of removing Plesk backups?
I'm looking for the command line equivalent of these steps: Log into Plesk as the server admin > "Tools & Settings" > "Tools & Resources" > "Backup Manager" > check a backup and click "Remove".
We have a script that copies the contents of "/var/lib/psa/dumps/" to Amazon S3 for long-term storage of backups. It runs nightly after a scheduled Plesk backup. Once that script completes successfully, we'd like to delete the Plesk backup to free up disk space. We have Plesk's "Maximum number of backups in the repository" set to 1.
But Plesk appears to keep that backup around while creating a new backup (which makes some sense). This is causing us trouble because the server does not have enough disk space for two backups. As a temporary solution, I'm manually deleting the backup each day through the Plesk admin, but would like to automate it if possible. If automation is overly complex/risky, we'll look at upping our disk space instead.
View 4 Replies
View Related
Apr 30, 2007
Is there a command i can type into the ssh console to stop a current transfer that i started wit the wget command?
the file im wgeting always stuffs up at 51% but then the server just retries and starts again, its done it 3 times so far and i just want to completely cancle the process if possible....
View 9 Replies
View Related
May 17, 2015
I have multiple backups stored under server repository (subscriptions --> <domainname> --> website and domains --> backup manager).
The physical files are located at: /var/lib/psa/dumps/clients/904279/domains/<domainname>/
When I click the green arrow to download these files to a local computer (see attached image) I get a new page with title "Download the backup file". On this page I have the option to set a password on the downloaded file, but no matter what I do (password or no password) the file is not downloaded to my local PC. I don't get a pop-up box with the option to save the file. Just nothing happens ...
View 1 Replies
View Related
Aug 15, 2014
I have 2 problems:
Firstly I wonder if there is any possibility to limit the number of cores the plesk backup zipping tool uses? This pigz takes up all my CPU. Is there any way I can reduce the amount of cores it uses because all my websites are down every time a backup takes place for around 3 minutes.
Secondly I get the following in my syslog:
1 baby plesk sendmail[20189]: Error during 'check-quota' handler
I don't know what is wrong. I think it's since the upgrade to Plesk 12. I now have 12.0.18 Update #13.
View 9 Replies
View Related
Sep 17, 2014
I have a 6GB backup file created with another Plesk Backup Manager, now I trying to upload this backup file to my Plesk Backup Manager but after upload 3% I am getting "413 Request Entity Too Large" error, I tried with disable NGINX but still getting this error.
how can I resolve this error or is their any other way to upload my file on backup manager?
I see that Backup Manager have a file size restriction of 2GB how can I increase this?
View 2 Replies
View Related
Feb 11, 2015
I have an Ubuntu 14.04 LTS 64 bit virtual private server with Plesk 12. The server is hired from a hosting provider. The server is used to run the Odoo ERP application (using postgres database).
The Odoo application is running fine and now I want to create a backup of the application using Plesks Backup manager.
I choose configurations and content option in the backup manager but the created backup is only 200kb.
I think the problem is the location where the Odoo application is installed is not included in the backup. I made a tar backup from the server and extracted it on my pc. It seems that the main parts of the Odoo application are in the var, opt, etc and usr directories (not in a domain but under root).
Installing the application in a domain would solve the Plesk backup issue I think but the installation script of Odoo puts Odoo in var, opt, etc and usr directories even if I put the install script in the directory of a created domain. Since the manual Odoo installation is complicated I am very happy to use the script.
My questions are:
1. Is it possible to include the directories var, opt, etc and usr in the Plesk backup and how and where do I do that?
2. Can I restore such a backup without no problem in Plesk?
View 1 Replies
View Related
Jan 26, 2007
I current do some rsync backups with a command like so every day
rsync -az -e ssh --stats --delete --exclude "stuff" / user@server:/home/user/
What I want to do is have some incremental backups in there in subdirectories. So, for example, something like this on the remote server
/home/user/something.tuesday
/home/user/something.friday
I thought the --backup --backup-dir Switches were used to store just the files that had changed in seperate directories, am I wrong on that?
I've read everything I could find, including the big rsnapshot scripts, but I'm not able to do what I want, it seems so simple but something's not right, am I wrong that subdirs should have just files that are new or have changed. I tried various things like this, but had no luck
rsync -az -e ssh --stats --delete --backup --backup-dir=/home.Thursday --exclude "stuff" / user@server:/home/user/
View 0 Replies
View Related
Jul 16, 2008
I tried to look up tutorials for basic commands, but none listed "last"
View 4 Replies
View Related
May 3, 2007
i have a problem
for example my current path in server is
root@server [/home/user1/public_html/upload]#
and i wanna copy every thing inside directory upload to /home/user1/public_html/
but when i used this command
root@server [/home/user1/public_html/upload]#cp -r -f *.* /home/user1/public_html/
then it just copy files . is there is any way to copy folder as well?
View 8 Replies
View Related
Sep 14, 2007
Im using the 'top' command on my server to view the memory and cpu usage, to save me sitting in front of my pc for hours looking at it, is there any way I can save it to a text file for viewing later on
its a 1and1 business server 1
View 3 Replies
View Related
May 13, 2007
I want to delete all files named .ftpquota from the server, what's the ssh command to accomplish this?
View 3 Replies
View Related
May 11, 2007
Whats the command to search inside files on a server....
i know locate <name> locates files.
but how do i actually search inside all files...
i know it can take a while/resources....
View 5 Replies
View Related
Feb 12, 2007
Can anyone please tell me if there is another command to get I/O HDD stats for FreeBSD except gstat?
View 3 Replies
View Related
Jun 5, 2007
My server's ram keeps on spiking to 100%. And this causes this error:
Code:
SQL error: Out of memory
So far, the only way I can sort this problem out is to reboot it.
Is there any commands to find out what is eating up all of the ram?
View 5 Replies
View Related