简体   繁体   English

对文件夹使用tar -zcvf会创建一个空的压缩文件

[英]Using tar -zcvf against a folder creates an empty compressed file

I am ssh'ed into an Acquia server trying to download some files. 我被带到Acquia服务器中尝试下载一些文件。 I need to backup these files for local development (to get user uploaded images mainly). 我需要备份这些文件以进行本地开发(主要是为了获取用户上传的图像)。

I am using the following command: 我正在使用以下命令:

tar -zcvf ~/download/stage-files_3-19-2015_1344.tar.gz files/

I have read/write access to the download folder. 我对下载文件夹具有读/写访问权限。 I created that folder. 我创建了那个文件夹。 I am in the parent folder of "files". 我在“文件”的父文件夹中。 And permissions to that folder are 777. 该文件夹的权限为777。

I was able to run this the other day with no issues. 前几天我能够运行此程序而没有任何问题。 So I am very confused as to why this is happening now. 因此,我对于现在为什么会发生这种情况感到非常困惑。

Actually I just figured this darn thing out. 实际上,我只是想出了这可恶的东西。 Must have run out of disk space because once I removed a prior compressed backup of the files it started running just fine. 磁盘空间一定用完了,因为一旦我删除了文件的先前压缩备份,它就开始正常运行。 Dang disk quotas. 当当磁盘配额。 Sorry guys. 对不起大家。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM