Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Plesk Server Hacked - How to Backup Post 302354842 by miguelvidal on Sunday 20th of September 2009 11:30:53 AM
Old 09-20-2009
Bug Backup

Quote:
Originally Posted by gsiva
Hi,

I too have faced these type of hack issues from my webhosting servers. Which is quite natural that we cannot avoid. So, now you are in a loop.
Thank you very much for your reply, gsiva.
Quote:
Originally Posted by gsiva
1) Do you have an local backup or else do you have a separate server for the backups?
No. I didn't have any backup.
Quote:
Originally Posted by gsiva
2) What is the format of the backup files?
If I create one now with Plesk Backup Utility, it has a particular format.
Quote:
Originally Posted by gsiva
3) You can use the Netcat command to transfer the files from one server to another. Here below the link

A Unix Utility You Should Know About: Netcat - good coders code, great reuse

Or else you can use the rsync command to transfer the files from one server to another in a quite time rather than upload and download.
4) I hope that every thing is been clear on the documentation, on how to restore from the backup.
What do you recommend to me: Netcat or rsync?
Which is the fastest? Which is the most secure?

Do you know how to manually backup everything of my server?
In a way that I can only copy the files to the new server and it will run like are running now.

Thank you very much,

Miguel Koscianski Vidal
 

6 More Discussions You Might Find Interesting

1. Cybersecurity

How to know when you've been hacked

One of the most important ways to keep tou machine secure is to know when it has been broken into. The less time hackers have on your system, the less they can do to it, and the greater you chancens of kicking them off and repairing the damage. The more sophisticated the hacker, the less likely... (8 Replies)
Discussion started by: binhnx2000
8 Replies

2. Shell Programming and Scripting

running Cron job in Plesk

I have a script to delete unwanted cookies from some Curl jobs we are doing find /tmp -name 'CURLCOOKIE*' -print0 | xargs -0 rm this works great when I am logged on as root in the shell, now I have to put it into a cron job in Plesk. When I do that it does not work. I think the directory... (0 Replies)
Discussion started by: vaene
0 Replies

3. Shell Programming and Scripting

rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment?

Hi Everyone, we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment? Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies

4. UNIX for Dummies Questions & Answers

Plesk 9.5.4 CentOS 5 how to view log files?

Hello i have Plesk 9.5.4 CentOS 5 and after updating to 9.5.4 plesk told me there were some errors and to view a log file. Some problems occured during upgrade. You need to * * check log file * * ... (0 Replies)
Discussion started by: basslion
0 Replies

5. UNIX for Dummies Questions & Answers

Adding plesk superuser from SSH

I'm trying to add a superuser (admin) to plesk from SSH (I have root access). Can this be done? I have search over the web but did not find any solution to my problem. My version is Plesk 9.3 (0 Replies)
Discussion started by: galford
0 Replies

6. Cybersecurity

Server hacked on known port

Hi, There is a recent case whereby it was reported that one of the production servers was hacked on port 1521. However, I am not sure how this was possible, as I checked that the OS firewall (iptables) is on : # /etc/init.d/iptables status Table: nat Chain PREROUTING (policy ACCEPT) num ... (7 Replies)
Discussion started by: anaigini45
7 Replies
SHELL-QUOTE(1)						User Contributed Perl Documentation					    SHELL-QUOTE(1)

NAME
shell-quote - quote arguments for safe use, unmodified in a shell command SYNOPSIS
shell-quote [switch]... arg... DESCRIPTION
shell-quote lets you pass arbitrary strings through the shell so that they won't be changed by the shell. This lets you process commands or files with embedded white space or shell globbing characters safely. Here are a few examples. EXAMPLES
ssh preserving args When running a remote command with ssh, ssh doesn't preserve the separate arguments it receives. It just joins them with spaces and passes them to "$SHELL -c". This doesn't work as intended: ssh host touch 'hi there' # fails It creates 2 files, hi and there. Instead, do this: cmd=`shell-quote touch 'hi there'` ssh host "$cmd" This gives you just 1 file, hi there. process find output It's not ordinarily possible to process an arbitrary list of files output by find with a shell script. Anything you put in $IFS to split up the output could legitimately be in a file's name. Here's how you can do it using shell-quote: eval set -- `find -type f -print0 | xargs -0 shell-quote --` debug shell scripts shell-quote is better than echo for debugging shell scripts. debug() { [ -z "$debug" ] || shell-quote "debug:" "$@" } With echo you can't tell the difference between "debug 'foo bar'" and "debug foo bar", but with shell-quote you can. save a command for later shell-quote can be used to build up a shell command to run later. Say you want the user to be able to give you switches for a command you're going to run. If you don't want the switches to be re-evaluated by the shell (which is usually a good idea, else there are things the user can't pass through), you can do something like this: user_switches= while [ $# != 0 ] do case x$1 in x--pass-through) [ $# -gt 1 ] || die "need an argument for $1" user_switches="$user_switches "`shell-quote -- "$2"` shift;; # process other switches esac shift done # later eval "shell-quote some-command $user_switches my args" OPTIONS
--debug Turn debugging on. --help Show the usage message and die. --version Show the version number and exit. AVAILABILITY
The code is licensed under the GNU GPL. Check http://www.argon.org/~roderick/ or CPAN for updated versions. AUTHOR
Roderick Schertler <roderick@argon.org> perl v5.16.3 2010-06-11 SHELL-QUOTE(1)
All times are GMT -4. The time now is 09:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy