1. 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

Discussion in 'Off Topic' started by Gregory, Nov 22, 2014.

  1. Gregory

    Gregory Member

    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. .Rolex

    .Rolex New Member

    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
     
  3. Gregory

    Gregory Member

    Thank you will try the winscp
     
  4. The Forum Heroes

    The Forum Heroes Well-Known Member

    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.
     
  5. Gregory

    Gregory Member

    Not sure, how do I tell?
     
  6. MattW

    MattW Well-Known Member

    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
     
  7. Gregory

    Gregory Member

    Ok will give it a shot...wish me luck :)
     
  8. Gregory

    Gregory Member

    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?
     

Share This Page