#1 (permalink)  
Old 11-20-2009, 05:14 AM
Registered User
 
Join Date: Nov 2009
Posts: 1
indous is on a distinguished road
delete backup files using putty

How can I delete back up files using putty (SSH). I want to know the commands.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 11-20-2009, 05:56 AM
cPanel Partner NOC
 
Join Date: Apr 2008
Posts: 221
JPC-Howard is on a distinguished road
Quote:
Originally Posted by indous View Post
How can I delete back up files using putty (SSH). I want to know the commands.
What kind of backup files do you want to delete. Go to the folder where the backup files are located using the command below.

cd /path/to/backup/folder/

The command below will delete the file named 'backup-file'.

rm backup-file
__________________
JaguarPC
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 11-20-2009, 06:25 AM
Registered User
 
Join Date: Oct 2006
Location: Penang, Malaysia
Posts: 42
mickbeng is on a distinguished road
you may use rm to remove a file.

rm remove file
rm -r remove file with recursive
rm -f force remove

normally backup file located at /backup/cpbackup/.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 11-20-2009, 10:23 PM
cPanelDon's Avatar
cPanel Staff (Administrator)
 
Join Date: Nov 2008
Location: Houston, Texas, U.S.A.
Posts: 1,265
cPanelDon is on a distinguished road
Lightbulb Removing files via command-line (CLI) SSH access

Quote:
Originally Posted by indous View Post
How can I delete back up files using putty (SSH). I want to know the commands.
Please use the following command to review the official manual "man" page for the "rm" utility:
Code:
# man rm
Via SSH, the "rm" command could be used; however, this must be done so carefully so as to not inadvertently remove important or required data.

The command-line (CLI) switch "-r" should only be used if needing to "recursively" remove a directory and all of the contents within that directory. As a safety precaution, I recommend to not use this option unless absolutely required for removing an entire directory structure and its contents.

The CLI switch "-v"may be used to enable verbose output that will explain what is being done, such as indicating when a file is removed. I recommend using this option so that there will be a more visual record of what actions are performed, excellent for copying-and-pasting.

The CLI switch "-f" may be used if needing to force the removal without prompting and ignoring nonexistent files.

The CLI switch "-i" may be used if needing to interactively confirm the removal of each file by answering a prompt for yes or no; this may be a desired option to use if there is any uncertainty involved in what is needing to be removed.

The following example could be used to forcefully remove a file named "backupfile.tar.gz" that is located in the same directory that you're currently in (where "backupfile.tar.gz" should be replaced with the actual file name involved):
Code:
# rm -fv backupfile.tar.gz
The following example could be used to interactively remove a file named "backupfile.tar.gz" located in a directory path of "/path/to/" (where "/path/to/backupfile.tar.gz" should be replaced by the actual directory path and file name of the file to remove):
Code:
# rm -iv /path/to/backupfile.tar.gz
__________________
For hands-on assistance please reference our new support options page: Where should I go for support?
--
cPanel Don, Technical Analyst - Support Options - Additional Support Options - Mailing Lists
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
which files & folders to backup, in order to backup system files? SoftDux cPanel and WHM Data Protection 0 12-02-2008 02:04 PM
Can I delete these files? erinspice cPanel and WHM Discussions 1 03-11-2008 12:40 PM
Delete Putty Private Key sparek-3 cPanel and WHM Discussions 0 02-05-2008 11:24 AM
Download Files Using SSH & Putty Supafly cPanel and WHM Discussions 10 03-18-2006 07:36 AM
Backup restore error on Putty ? Mike1984 cPanel and WHM Discussions 0 09-19-2003 08:23 AM


All times are GMT -5. The time now is 10:32 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
© cPanel Inc