LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-19-2009, 10:14 AM   #1
f10-next
Member
 
Registered: May 2009
Posts: 33
Blog Entries: 1

Rep: Reputation: Disabled
Unhappy I cannot delete the old backup files


Does anyone know how to delete the old backup files with yum as super user (su)?! I am running on fedora 10 remade to desktop (installed only 'f10-i686 live' on a HD). It is a small wonder, but I still cannot manage it. Pls., advise

Last edited by f10-next; 05-19-2009 at 10:26 AM.
 
Old 05-19-2009, 11:48 AM   #2
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
I guess I don't understand what do you mean by "old backup files" and "with yum" in the same sentence.
When some packages are updated a post script saves the new configuration files as "whatever.rpmsave".
Also, yum can keep the files on the cache.

So, can you explain this a little more ? Maybe you are not using the right term...
 
Old 05-19-2009, 02:22 PM   #3
f10-next
Member
 
Registered: May 2009
Posts: 33

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Old backups

I installed a package Simple backup for desktop use from the package list. On my PC it does not work as intended (the controls are not accepted by the backup utility). I instructed it to remove the old backups and it didn't do so. The backups are on the desktop, managed by root. If I enter the terminal as su how can I remove these backups. What is their extension '*.~' or something else.
 
Old 05-19-2009, 02:29 PM   #4
emclinux
Member
 
Registered: Sep 2008
Posts: 49

Rep: Reputation: 16
You can use the rm command to remove file.

i.e.

Code:
rm -i file_name
Read http://www.computerhope.com/unix/urm.htm before ever running the rm command and always research a command before running so you know exactly what it does.
 
Old 05-19-2009, 03:38 PM   #5
f10-next
Member
 
Registered: May 2009
Posts: 33

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
It doesn't work. It is not a joke.
(I renamed it after the backup manager was unable to manage it, because the name was too long. I have also another backup of the system with original file name, if this is a problem)

In the properties settings I read:
Basic
Name: 1
Type: folder (inode/directory)
Contents: unreadable
Location:/home/user-f10
Volume: unknown
Permissions:
Owner: root
Group: root
How can I move it at least to a flash memory. There are three backups to delete and the fourth one is the last back up, and I need it I guess.
 
Old 05-19-2009, 04:02 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,627

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
as far as I know there IS NO file that
Code:
su -
cd /to/the/folder/it/is/in 
rm FileName
-- or --
rm -f FileName
-- or --
rm -fR FolderName
will not remove
you can even REMOVE THE RUNNING opperating system with
DO NOT TRY
Code:
su -
rm -fR /
 
Old 05-19-2009, 04:07 PM   #7
f10-next
Member
 
Registered: May 2009
Posts: 33

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
It is a directory with backup of the system.
 
Old 05-19-2009, 04:46 PM   #8
emclinux
Member
 
Registered: Sep 2008
Posts: 49

Rep: Reputation: 16
Code:
rm -rf folder_name
Will remove it
 
Old 05-19-2009, 08:33 PM   #9
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
yes, the guys above are all correct. try "rm -rf folder_name" as emclinux pointed.
anyway, a good way to get the permissions of a folder/file is "ls -ld folder_name". The information returned is far better than the basic properties you gave to us in a previous post.
 
Old 05-19-2009, 10:35 PM   #10
f10-next
Member
 
Registered: May 2009
Posts: 33

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
Thanks guys. You are great. Are you curious to see the terminal log:

[user-f10@localhost ~]$ su -
Password:
[root@localhost ~]# cd /home/user-f10
[root@localhost user-f10]# rm 1
rm: cannot remove `1': Is a directory
[root@localhost user-f10]# rm -f 1
rm: cannot remove `1': Is a directory
[root@localhost user-f10]# rm -fR 1
[root@localhost user-f10]# rm -fR 2
[root@localhost user-f10]# rm -fR 3
[root@localhost user-f10]#

All the three are removed successfully and the system is in good shape. Thank you a lot.
 
Old 05-19-2009, 10:48 PM   #11
f10-next
Member
 
Registered: May 2009
Posts: 33

Original Poster
Blog Entries: 1

Rep: Reputation: Disabled
The next question.
How can I make a backup of the system on a live CD with automatic recovery?
 
Old 06-18-2009, 08:25 AM   #12
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
http://en.wikipedia.org/wiki/List_of...oning_software
 
  


Reply

Tags
f10



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Script help - delete files older than 45 days but exclude the system files jojothedogboy Linux - Software 3 06-13-2008 03:43 PM
How to create/delete temp/backup files through a shell script ? Sid2007 Programming 4 10-17-2007 01:55 PM
k3b - easy way to burn & delete backup files brianmcgee Linux - Software 0 10-16-2007 08:24 AM
Samba when I delete the original file sometimes deletes backup ewlnxnewB Linux - Newbie 6 11-20-2003 01:30 AM
How to delete the destination files while the source files deleted in cp -u ? myunicom Linux - General 4 09-26-2003 01:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:52 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration