Cron To Delete Files Every 24 Hours

Jun 15, 2008

I want to setup a crontab to delete a file every 24 hours, I am not the best in crontab so was wondering if one of you could please give me the command I should use?

View 7 Replies


ADVERTISEMENT

How To Add Cron To Restart Apache Server Every Three Hours

May 5, 2008

My host is experiencing "issues" with my WordPress. It keeps going above their upper limit of open MySQL connections. So, while I am diagnosing it, I need to restart the server every few hours to avoid it going down.

How do I write a cron to restart Apache every 3 hours?

View 5 Replies View Related

How To Set Up Cron Job To Replace Index File Every 3 Hours...

Apr 18, 2007

I would like to replace my index file every three hours, with a specified file on the server thats in a different folder (someone keeps putting unwanted stuff in my index file) Can someone explain to me how this is done?

View 2 Replies View Related

Cron To Delete Ips Blocked By Csf From Iptables How

Apr 4, 2009

how can i set up a cron that will run monthly and will delete the ips blocked by csf and those logged in iptables? its like every month i want to start clean with iptables

View 2 Replies View Related

Cron Job To Delete Mail Queue

Nov 17, 2008

How can I set a command that it will delete all bounce and frozen emails every 12 hours?

View 10 Replies View Related

Cant Delete Files

Jul 12, 2009

im try to delete some file from cpanel but everytime i delete nad refresh they come back
also if i try to change the perms it does not let me?

View 14 Replies View Related

How To Delete Files

Aug 13, 2008

i have installed the Domain Technologie Control Panel on Debian Etch, and have 2 folders that will not delete via FTP

I was wondering if anyone had a tutorial or could tell me how to be able to delete them....

View 14 Replies View Related

Delete Files In /var/log

Aug 3, 2007

I am currently freeing up some space on my VPS and want to know if it ok for me to delete the following files in: /var/log/

apf_log.3
apf_log.4
boot.log.3
boot.log.4
cron.3
cron.4
exim_mainlog.3.gz
exim_mainlog.4.gz
exim_paniclog
exim_paniclog.3.gz
exim_paniclog.4.gz
exim_rejectlog.3.gz
exim_rejectlog.4.gz
maillog.3
maillog.4
messages.3
messages.4
rpmpkgs.3
rpmpkgs.4
secure.3
secure.4
spooler.3
spooler.4

View 2 Replies View Related

How To Delete Backup Files

Oct 25, 2009

I have files on offsite backup from a previous server - I can login via putty ot winscp.

Putty login shows:

Quote:

FreeBSD 6.1-RELEASE-p3 (BACKUP3)

i want to delete them all - how can I do this in the most secure manner with the access I have?

View 9 Replies View Related

Safe To Delete These Files

Feb 12, 2008

I am running my VPS on direct admin panel, my disk space is going low, so i am deleting few junk / log files

Kindly let me know

1) is it safe to delete data of this directory -

/var/log/httpd/domains

The File names in above directory are such as - " domain.com.bytes "

As it is occupying 600 MB space

2) where can i delete much junk / temp files, to free up space.

View 5 Replies View Related

How To Delete Specific Files

Oct 10, 2007

In one folder, I have thousand of files, and I want to delete 100 specific files. Saying specific files, I mean all of them has a keyword. So, I can find out all of them by using
grep "keyword" *

but dont know how to delete all of them. Not deleting one by one.

View 2 Replies View Related

FTP: User Cannot Delete Files, Etc.

Aug 20, 2007

I'm having a problem with one of my users on my box. For some reason they cannot delete files or change permissions and sometimes while uploading, it says the server has reset.

I haven't had any issues myself but what could be causing this?

I am using a Linux Fedora 4.0 box with Cpanel.

View 14 Replies View Related

Which Files In /var Are Safe To Delete

May 5, 2007

I have WHM 11.1.0 cPanel 11.2.1-C11635
FEDORA 4 i686 - WHM X v3.1.0

My /var partition is over 64% full. 2 directories in there show a lot of space being used.

One of these is /var/lib/mysql
du -h --max-depth=1 #
shows user accounts on the server with their database names. Are these just logs, or are they the actual databases? (Probably dumb newbie question)

The other big one is /var/log/munin Is there anything there I can delete?

View 14 Replies View Related

Apache :: How To Delete Files

Jun 5, 2013

My server is with Centos OS. I have a cache directory which has tons of scrap files. I am unable to delete it. rm -rf dirname gives an error.Is there any way to remove this directory quickly. 

View 6 Replies View Related

Delete Some Specific Files From All Subdirectories

Jan 4, 2007

Useful unix-command trick to quickly remove i.e. Thumbs.db files, WS_FTP.LOG files or *.fla files, recursively through directories.

It could be a real pain on a huge directory tree ;-)

Removing all *.fla files from /home/user/ and subdirectories...

Code:
# find /home/user/ -name *.fla -ok rm {} ;
Removing all WS_FTP.LOG files from /home/user and subdirectories...

Code:
# find /home/user -name WS_FTP.LOG -ok rm {} ;
Removing all Thumbs.db files from /home/user and subdirectories...

Code:
find /home/user -name Thumbs.db -ok rm -f {} ;

View 14 Replies View Related

Can't Delete Files From CPanel Server

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

Delete Backup Files Of Terminated Accounts

Jun 18, 2009

What is the best way to remove backups files of terminated accounts in the /backup/cpbackup/daily directory?

View 1 Replies View Related

Delete Files Created On A Specific Date

Jun 28, 2008

Is there a quick shell command to find (inside a directory) and delete all the files created e.g. on January 10, 2008 ?

View 2 Replies View Related

How To Easily Search And Delete Specific Files

Aug 15, 2008

to delete file1010.jpg and filetest.jpg from /public_html/Storage

problem is there are hundred thousands .jpg files stored on /public_html/Storage

How can I easily search for these 2 files and delete it?

I am using Cpanel & Ftp Program Ws ftp pro, Which one is better to use to do the job?

View 3 Replies View Related

Plesk 11.x / Windows :: Delete Temp Files In Folder?

Jun 20, 2013

I had a Problem with my FTP-Backup space, so PLESK couldn't do the daily backups that I configured. The problem with the ftp backup is solved. The backups are running again but there are still many large temporary files in a plesk folder.

Can I just delete them, or is this a bad idea?

The folder:
C:Program Files (x86)ParallelsPleskPrivateTemp

Screenshot

View 3 Replies View Related

Plesk 11.x / Windows :: Can Delete Files Of Recycler Folder?

Apr 21, 2013

I have noticed that i never install any program on my Server and my files of Web only 5 GB and Windows take 15 GB (My Hard Disk Usage 30 GB). Now my disk space available 1.7 GB. But when i go to check in the Recycler folder. There many files are taking up huge amounts of space, some are in excess of 10 GB . So could i deleting these files? How can I automatically delete contents of Recycler folder?

View 7 Replies View Related

Plesk 12.x / Linux :: Delete Subdomain Without Removing Files Or Database?

Aug 30, 2014

I cannot seem to find a conclusive answer to this. I use subdomains to create client websites then once they are in their own domains the subdomains still remain. Can I delete only the subdomain and leave all the files or at least leave the database since it is still connected to the new domain. Example below.

subdomain.example.com uses database1

newsite.com still uses database1

Is there a way to copy the database into the new domain?

View 1 Replies View Related

How NOT To Require CHMOD 755 Permissions To Create, Write And Delete Files On Linux

Dec 30, 2008

On my previous server and on some other hosts, I was able to write to files (for example with PHP) without having to chmod the files first.

Now I cannot, and files are required to be chmoded properly so I can write to them.

I cannot even touch() a file with PHP.

Is there any way to have this permissions removed?

I don't want to chmod the all thing, all I want is to change the configurations so I can fwrite() or file_put_contents() normally.

I's a dedicated un-managed server, so basically any advanced configurations can be done.

View 8 Replies View Related

Cron Jobs Not Executing PHP Files

Jun 16, 2008

I have a new dedicated server and am trying to set up a cron job via CPanel on on of my accounts (we'll call it "abc" account).

In the Cron job area, where it asks for the command to run, I enter this:

/home/abc/public_html/forum/class/sendnotice.php

But when the job runs, it doesn't seem to be executing the .php file. Instead, I get stuff like this via email:

/home/acb/public_html/forum/class/sendnotice.php: line 1: ?php: No such file or directory
/home/abc/public_html/forum/class/sendnotice.php: line 2: ////////////////////////////: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 3: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 4: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 5: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 6: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 7: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 8: //: is a directory
/home/abc/public_html/forum/class/sendnotice.php: line 9: //: is a directory

So it is as if the cron job is reading each line of the .php file instead of just running it. Am I doing something wrong in setting up the cron job to run that file or could it be a configuration issue with the new server?

View 3 Replies View Related

Plesk 11.x / Linux :: Remove Domain Alias Warns It Will Delete All Related Files

Sep 2, 2013

I think the wrong text is displayed for the option "Remove Domain Alias".

In Plesk 11.5.30 Update #13, in a Webspace, on the Websites & Domains tab, if I click an alias, a window appears for the alias with the option to "Remove Domain Alias". If I move the cursor over the text "Remove Domain Alias", or click on the link, I see a pop-up: Removing this website will also delete all related files, directories, and web applications from the server.

I think this is incorrect because removing an alias should not remove any files, directories, and web applications.

View 3 Replies View Related

Cron Job That Deletes Backup Files Older Than 5 Days

May 31, 2009

This is on a RHEL 4 Box.

I want to create a cron job that deletes backup files that are older than 5 days. I have created a shell script (/usr/local/src/runjob.sh) that runs successfully from the SSH command line:

Code:
#pwd
/usr/local/src
#./runjob.sh
Here is the script:

Code:
#!/bin/sh
#

#
find /usr/local/apache/sites/*/BACKUPS/ -maxdepth 1 -atime +5 -iname 'test*.txt' -exec rm {} ;
Script has 777 permissions and is owned by root.

I have the following entry in crontab:

Code:
10 12 * * * /bin/sh /usr/local/src/runjob.sh >/dev/null 2>&1

As shown in the cron log, the job does run, but it does not delete the files. And there are files older than 5 days in the directory that meet the find criteria.

View 12 Replies View Related

HOWTO Cron Job To Copy Files From Folder To Root

Feb 5, 2008

how to setup a cron job to copy files & directories from one folder to the root folder. I have CPanel X.

My root directory is public_html/
I have another directory public_html/uploads containing both files and directories.

I need a cron job that will copy all the files & directories from public_html/uploads to the root public_html/

If it helps, here is some system info

General server information:
Operating system Linux
Service Status Click to View
Kernel version 2.6.22_hg_grsec_pax
Apache version 1.3.39 (Unix)
PERL version 5.8.8
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
PHP version 4.4.4
MySQL version 4.1.22-standard
cPanel Build 11.17.0-STABLE 19434
Theme cPanel X v2.6.0

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved