• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

could use some advice with server

#1
Hi,
I accidentally was running backups to my /sda3 and now it's 95 full. Is there an easy way I can remove the backups from there? I don't have much experience in using ssh so is there a single command I can use?

Thanks for any advice

Greg
 
#2
you can use winscp and drag them out of the directory

alternatively you can use ssh : mv /path/to/currentfile /parth/to/newfile
if you want to move everything in there: mv /path-old/* /path-new
you can deleted backups with: rm -rf filename
 

Mike Edge

Well-known member
#4
What is mounted to /dev/sda3 If its your /tmp you can safely use the #rm -rf /tmp/*;service restart httpd;service restart mysql command string.
 

MattW

Well-known member
#6
Not sure, how do I tell?
df -h will show you what is mounted on each section

Code:
root@debian:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
rootfs           20G  9.9G  8.3G  55% /
/dev/root        20G  9.9G  8.3G  55% /
devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs           788M  240K  788M   1% /run
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs           1.7G     0  1.7G   0% /dev/shm
/dev/sda2       898G  404G  448G  48% /home
tmpfs           1.0G     0  1.0G   0% /var/lib/nginx/fastcgi
Also, check /etc/fstab
Code:
root@debian:~# cat /etc/fstab
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/sda1       /       ext4    errors=remount-ro,relatime      0       1
/dev/sda2       /home   ext4    defaults,relatime       1       2
/dev/sda3       swap    swap    defaults        0       0
proc            /proc   proc    defaults                0       0
sysfs           /sys    sysfs   defaults                0       0
tmpfs           /dev/shm        tmpfs   defaults        0       0
devpts          /dev/pts        devpts  defaults        0       0
tmpfs           /var/lib/nginx/fastcgi  tmpfs  defaults,noatime,nodev,mode=0750,size=1g,uid=nginx  0 0
 
#8
Alright I'm in, what can be deleted in / directory? Anything old? I see files there from 2006. Can it all be erased without harming my public htm files?