• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

How do I redirect /tmp ?

Hi experts,

I'm running rdiff-backup on a directory with about 200 Gigs of data on debian sarge. rdiff-backup complains about running out of space on /tmp. How can I redirect / symlink the the /tmp directory to somewhere else without restarting the machine?

Thanks,

Sean
0
sow56091
Asked:
sow56091
  • 2
  • 2
1 Solution
 
joolsCommented:
Can't you just configure rdiff-backup to use a different tmp directory?
0
 
joolsCommented:
if you could post the command you use it may help...
0
 
Tachyon_1Commented:
mkdir someplace
mv /tmp /tmpold
mv someplace /tmp
<stuff here>
.
.
.
</end stuff>
mv /tmp someplace
mv /tmpold /tmp

Though I suspect you are doing something more complicated than this will fix.
Especially if you have /tmp on a seperate filesystem/partition from /
or if you want someplace to be on a different filesystem/partition.

If so, let me know as you'll likely need a umount and some other stuff in there too...
0
 
ppfoongCommented:

Well, if you want, you can prepare an empty partition and mount it as /tmp. Can put in /etc/fstab for automounting too.

0
 
ppfoongCommented:

If your /tmp is an individual partition with low disk allocation space, and you have plenty of space in /, you can move back /tmp to / by unmounting it and comment out its entry in /etc/fstab.

the command is:

umount /tmp
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now