Package And Rename A Cpanel Acct, Then Scp, Then Delete
Jan 25, 2008
I would like to do the following. It doesn't have to be in this particular order, as long as the results are the same.
delete <cpanelusername>-<date>.tar.gz (created from last pkgacct run)
/scripts/pkgacct <cpanelusername>
rename output to something like <cpanelusername>-<date>.tar.gz
scp -pr /home/backup-<cpanelusername>-<date>.tar.gz root@othervps:/backups
I don't know if all of that can be done in a single cron separated by | or if it has to be in a script file the cron calls. I have never made/called a script before, so I need some help doing that.
When you do the pkgacct, can you specify the name, so you can built it with the date/time?
View 7 Replies
ADVERTISEMENT
Sep 21, 2007
client can't access my site via the PW and ID that I give her for the FTP.
I've tried creating two different accts and they both don't work for her.
But when I give her my own private FTP info (which I don't recommend!), it works for her?
Does anybody know where the disparity in her FTP settings might be coming into play that causes this?
View 1 Replies
View Related
Apr 1, 2009
I have a list of files in a folder like this:
/home/files/[url]
And I need to rename them to this format:
awstats092008.[url]
I've played around with sed, rename, and a bunch of others.. but I just can't figure this out.
server is CentOS 5.2
View 2 Replies
View Related
Jan 24, 2007
to rename about 1100 files from SSH. The filenames contain (, ), and spaces, and I'd like to eliminate all of those characters. Can this be done with a simple command?
View 0 Replies
View Related
Mar 30, 2009
if it's possible to disable the ability to send email for accounts using a certain package in cPanel? I tried searching, I didn't find anything really relevant. Would it be possible to maybe create a rule, or script to add a rule to each account using a package to just block that username or account from sending email?
View 5 Replies
View Related
Nov 21, 2013
Is it possible to rename a domain ? hwo to do it ? I have plesk panel 11.5.30 configured for ISP
View 2 Replies
View Related
Aug 27, 2007
To automate a task, I need to create a shell script that will allow me to copy the folder blank/ to a new location and rename it to news/, same for the files inside that directory. And, if possible, change the content of one of those files as well.
For example, I need to copy this:
Code:
blank/
templates/
frontend/
index.html
Blank.php
...to a new folder and rename it to this:
Code:
news/
templates/
frontend/
index.html
News.php
View 5 Replies
View Related
Jun 20, 2013
I'm trying to rename a domain in my panel and keep getting the following error:
Code:
Error: Execute websrvmng --rename-vhost "--old-name=domainb.com" "--new-name=domaina.com" failed with error code 1: External component has thrown an exception. In IIS7NativeProvider module Exception type: System.Runtime.InteropServices.SEHException at _CxxThrowException(Void* , _s__ThrowInfo* ) at IIS7ApplicationPools.copy(IIS7ApplicationPools* , auto_ptr<IApplicationPool>* , basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >* srcName, basic_string<wchar_t,std::char_traits<wchar_t>,std::allocator<wchar_t> >* dstName)
Running
Code:
websrvmng --rename-vhost "--old-name=domainb.com" "--new-name=domaina.com"
In the Windows command line gives the following error:
Code:
Cannot find domain by name 'domaina.com'
Haven't found many leads on the web as to what this might be.
View 2 Replies
View Related
Apr 27, 2008
my control panel is: Cpanel
when somebody send me a wrong email , that will go to my Default address
example , my website name is : "test.com" and my website user : "test"
now , if somebody send a mail to 4444442342343@test.com that mail will go to my default address: " test "
i have a 50.000 emails in my default address
how can i delete complete that emails?
is there anyway for delete much email?
View 7 Replies
View Related
Jul 9, 2009
I've been running a forum for a while now which of course had a database. Now I sold the vBulletin License and I'd like to delete the database that was created for it. How do I do that?
I've looked throught cPanel, but couldn't find an option on deleting a whole database. Might be looking in the wrong sections or something. Can someone help me out?
It would be even better if it is possible to reset my whole server throught cPanel. Is this possible?
View 10 Replies
View Related
Jul 2, 2008
I installed RoundCube through cPanel and it won't delete emails. I don't get any error messages or anything. When in Roundmail I select the email to delete and then hit the delete icon or drag to the trash folder it disappears, but when i log back in or click on the inbox again it comes back. Don't know if this is part of the same problem but i also can't access created folders. It shows the folder on the left but when i click on it nothing happens. I have a feeling this is a permissions problem but i can't find the issue. Anyone have any recommendation to try?
I have read alot of forums that say to enable the create folders option in the config file, it is enabled and i still have the same issues.
View 4 Replies
View Related
May 11, 2007
I've been using CPanel for a few years now and I've encountered an error that I have no clue how to fix it. Basically the files have been with me for the last two or three years and I've changed them from server to server. I'd say these files have been through about four or five servers. The funny thing is I can't delete any of these files. The files are in a folder under public_html and I can't delete the folder or any of the files or folders inside of that folder. I've tried through FTP and through CPanel.
The FTP error I get (I'm using WS_FTP Pro) is:
# transferred 4277 bytes in 0.063 seconds, 534.625 Kbps ( 66.828 Kbps), transfer succeeded.
226-Options: -a -l
226 58
The CPanel error I get (through File Manager) is:
[a fatal error or timeout occurred while processing this directive]
and under the trash can in File Manager:
Unable to change directory to /home/mydirectory/.trash! You do not seem to have access permissions! (System Error: Permission denied)
I even CHMODed all of the files to 777. I don't know how to get rid of these old files, how do I do it? I also have root to the server if that helps.
View 3 Replies
View Related